[PATCH] aio-retry-fix: fix aio retry work queueing
authorSébastien Dugu <sebastien.dugue@bull.net>
Wed, 29 Jun 2005 03:44:59 +0000 (20:44 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 29 Jun 2005 04:20:32 +0000 (21:20 -0700)
commitc016e2257acd00a7ffd87fa1eec896138563d1aa
treeaa22df355afe2be5b5476c1c6d26da99e47836fc
parent334a13ec3d01a1a4b4f2249735b793105cb4a519
[PATCH] aio-retry-fix: fix aio retry work queueing

In the case of buffered AIO, in the aio retry path (aio_run_iocb), when the
retry method returns EIOCBRETRY the kicked iocb is added to the context run
list but is never queued onto the work queue.  The request therefore is
never completed.

This patch fixes that by adding the appropriate call to aio_queue_work in
aio_run_aiocb so that subsequent retries will be handled by the aio worker
thread.

Signed-off-by: Sébastien Dugué <sebastien.dugue@bull.net>
Acked-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/aio.c