mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
[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>
This commit is contained in:
parent
63e6880918
commit
c43dc2fd88
2 changed files with 9 additions and 9 deletions
|
@ -2869,7 +2869,7 @@ need_resched:
|
|||
|
||||
int default_wake_function(wait_queue_t *curr, unsigned mode, int sync, void *key)
|
||||
{
|
||||
task_t *p = curr->task;
|
||||
task_t *p = curr->private;
|
||||
return try_to_wake_up(p, mode, sync);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue