From: Benjamin LaHaise Date: Fri, 9 Sep 2005 20:02:09 +0000 (-0700) Subject: [PATCH] aio: kiocb locking to serialise retry and cancel X-Git-Tag: v2.6.14-rc1~450 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac0b1bc1edbe81c0cb36cad7e7f5b91f4d9e12ed;p=pandora-kernel.git [PATCH] aio: kiocb locking to serialise retry and cancel Implement a per-kiocb lock to serialise retry operations and cancel. This is done using wait_on_bit_lock() on the KIF_LOCKED bit of kiocb->ki_flags. Also, make the cancellation path lock the kiocb and subsequently release all references to it if the cancel was successful. This version includes a fix for the deadlock with __aio_run_iocbs. Signed-off-by: Benjamin LaHaise Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed