aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iops.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-04-12 21:38:29 -0400
committerDave Chinner <david@fromorbit.com>2015-04-12 21:38:29 -0400
commit21c3ea18819b5f650c75f59a0457415bc05d2b17 (patch)
tree4a6ffaa3bed47bc57441c3ffe9d2f1e55a8b197d /fs/xfs/xfs_iops.c
parent66db8104968ad8c0bf5a45a100ae586ddfadc1e1 (diff)
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_iops.c')
-rw-r--r--fs/xfs/xfs_iops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
index d7782ae1af3c..1d4efee4be17 100644
--- a/fs/xfs/xfs_iops.c
+++ b/fs/xfs/xfs_iops.c
@@ -988,7 +988,7 @@ xfs_vn_setattr(
988 uint iolock = XFS_IOLOCK_EXCL; 988 uint iolock = XFS_IOLOCK_EXCL;
989 989
990 xfs_ilock(ip, iolock); 990 xfs_ilock(ip, iolock);
991 error = xfs_break_layouts(dentry->d_inode, &iolock); 991 error = xfs_break_layouts(dentry->d_inode, &iolock, true);
992 if (!error) 992 if (!error)
993 error = xfs_setattr_size(ip, iattr); 993 error = xfs_setattr_size(ip, iattr);
994 xfs_iunlock(ip, iolock); 994 xfs_iunlock(ip, iolock);