lkml.org 
[lkml]   [1999]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] wchan in 2.3.18ac6
I don't like the kmalloc in array.c to copy the task struct. Not strictly
for performances but because we should do the proper locking there.

The current fixes in 2.3.18ac6 broken again wchan. This patch will make
wchan working again in the current kmalloc/memcpy way. Also it seems to me
that KSTCK_* are looking larger than sizeof(struct task_struct).

--- 2.3.18ac6/fs/proc/array.c Mon Sep 20 01:15:41 1999
+++ /tmp/array.c Mon Sep 20 20:32:19 1999
@@ -1007,12 +1007,12 @@
vsize += vma->vm_end - vma->vm_start;
vma = vma->vm_next;
}
- eip = KSTK_EIP(tsk);
- esp = KSTK_ESP(tsk);
+ eip = KSTK_EIP(p);
+ esp = KSTK_ESP(p);
up(&mm->mmap_sem);
}

- wchan = get_wchan(tsk);
+ wchan = get_wchan(p);

/* scale priority and nice values from timeslices to -20..20 */
/* to make it look like a "normal" Unix priority/nice value */
Andrea


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.068 / U:2.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site