]> git.hungrycats.org Git - linux/commitdiff
[PATCH] use aio workqueue in fs/aio.c
authorAndrew Morton <akpm@osdl.org>
Tue, 1 Jun 2004 01:51:50 +0000 (18:51 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 1 Jun 2004 01:51:50 +0000 (18:51 -0700)
From: William Lee Irwin III <wli@holomorphy.com>

Minor aio correction split off from suparna's patches:

Use the dedicated aio workqueue, not keventd, in order to isolate the rest
of the system from aio's demands.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/aio.c

index 574eeaf5d49076ea7f3249f03ce8dfca6e8e1571..7ca2af82bd9923558a1433fa0256873459608520 100644 (file)
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -608,7 +608,7 @@ void fastcall kick_iocb(struct kiocb *iocb)
                spin_lock_irqsave(&ctx->ctx_lock, flags);
                list_add_tail(&iocb->ki_run_list, &ctx->run_list);
                spin_unlock_irqrestore(&ctx->ctx_lock, flags);
-               schedule_work(&ctx->wq);
+               queue_work(aio_wq, &ctx->wq);
        }
 }