diff options
author | Benjamin LaHaise <bcrl@kvack.org> | 2005-06-23 03:10:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 12:45:34 -0400 |
commit | c43dc2fd885b5658cfd7cedb7bcca20910c517a4 (patch) | |
tree | 98b723badf4a71c9dbf04cfd0babcb02ac577982 /kernel | |
parent | 63e6880918e75dcb92d60aff218a76e063a471ef (diff) |
[PATCH] aio: make wait_queue ->task ->private
In the upcoming aio_down patch, it is useful to store a private data
pointer in the kiocb's wait_queue. Since we provide our own wake up
function and do not require the task_struct pointer, it makes sense to
convert the task pointer into a generic private pointer.
Signed-off-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6ee4515d5a20..76080d142e3d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2869,7 +2869,7 @@ need_resched: | |||
2869 | 2869 | ||
2870 | int default_wake_function(wait_queue_t *curr, unsigned mode, int sync, void *key) | 2870 | int default_wake_function(wait_queue_t *curr, unsigned mode, int sync, void *key) |
2871 | { | 2871 | { |
2872 | task_t *p = curr->task; | 2872 | task_t *p = curr->private; |
2873 | return try_to_wake_up(p, mode, sync); | 2873 | return try_to_wake_up(p, mode, sync); |
2874 | } | 2874 | } |
2875 | 2875 | ||