]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Fix ABBA deadlock between i_mutex and iolock. Avoid calling
authorLachlan McIlroy <lachlan@sgi.com>
Thu, 7 Sep 2006 04:27:05 +0000 (14:27 +1000)
committerDavid Chatterton <chatz@sgi.com>
Thu, 7 Sep 2006 04:27:05 +0000 (14:27 +1000)
commit31429b47c053a2de1430d175a87fbd67748fdfd2
tree0db37f80a7ef0b701b313e9ba28f8c0d3950e533
parent15251fa0fc60701614991ee88373a8314baa416c
[XFS] Fix ABBA deadlock between i_mutex and iolock. Avoid calling
__blockdev_direct_IO for the DIO_OWN_LOCKING case for direct I/O reads
since it drops and reacquires the i_mutex while holding the iolock and
this violates the locking order.

SGI-PV: 955696
SGI-Modid: xfs-linux-melb:xfs-kern:26898a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: David Chatterton <chatz@sgi.com>
fs/xfs/linux-2.6/xfs_aops.c
fs/xfs/linux-2.6/xfs_lrw.c