Messages in this thread Patch in this message | | | Date | Mon, 20 Sep 1999 20:40:11 +0200 (CEST) | From | Andrea Arcangeli <> | 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/
| |