]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfs: unlock i_mutex in xfs_break_layouts
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Apr 2015 01:38:29 +0000 (11:38 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 13 Apr 2015 01:38:29 +0000 (11:38 +1000)
commit21c3ea18819b5f650c75f59a0457415bc05d2b17
tree4a6ffaa3bed47bc57441c3ffe9d2f1e55a8b197d
parent66db8104968ad8c0bf5a45a100ae586ddfadc1e1
xfs: unlock i_mutex in xfs_break_layouts

We want to drop all I/O path locks when recalling layouts, and that includes
i_mutex for the write path.  Without this we get stuck processe when recalls
take too long.

[dchinner: fix build with !CONFIG_PNFS]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_file.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_iops.c
fs/xfs/xfs_pnfs.c
fs/xfs/xfs_pnfs.h