diff options
author | Christoph Hellwig <hch@lst.de> | 2015-04-13 11:38:29 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-04-13 11:38:29 +1000 |
commit | 21c3ea18819b5f650c75f59a0457415bc05d2b17 (patch) | |
tree | 4a6ffaa3bed47bc57441c3ffe9d2f1e55a8b197d /fs/xfs/xfs_ioctl.c | |
parent | 66db8104968ad8c0bf5a45a100ae586ddfadc1e1 (diff) | |
download | linux-21c3ea18819b5f650c75f59a0457415bc05d2b17.tar.gz linux-21c3ea18819b5f650c75f59a0457415bc05d2b17.tar.bz2 linux-21c3ea18819b5f650c75f59a0457415bc05d2b17.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_ioctl.c')
-rw-r--r-- | fs/xfs/xfs_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c index ac4feae45eb3..3a21cc71fda0 100644 --- a/fs/xfs/xfs_ioctl.c +++ b/fs/xfs/xfs_ioctl.c @@ -639,7 +639,7 @@ xfs_ioc_space( return error; xfs_ilock(ip, iolock); - error = xfs_break_layouts(inode, &iolock); + error = xfs_break_layouts(inode, &iolock, false); if (error) goto out_unlock; |