-
- Downloads
xfs: fix filesystsem freeze race in xfs_trans_alloc
As pointed out by Jan xfs_trans_alloc can race with a concurrent filesystem freeze when it sleeps during the memory allocation. Fix this by moving the wait_for_freeze call after the memory allocation. This means moving the freeze into the low-level _xfs_trans_alloc helper, which thus grows a new argument. Also fix up some comments in that area while at it. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Alex Elder <aelder@sgi.com> Reviewed-by:
Dave Chinner <david@fromorbit.com>
Showing
- fs/xfs/xfs_fsops.c 1 addition, 1 deletionfs/xfs/xfs_fsops.c
- fs/xfs/xfs_iomap.c 1 addition, 2 deletionsfs/xfs/xfs_iomap.c
- fs/xfs/xfs_mount.c 7 additions, 7 deletionsfs/xfs/xfs_mount.c
- fs/xfs/xfs_trans.c 10 additions, 17 deletionsfs/xfs/xfs_trans.c
- fs/xfs/xfs_trans.h 8 additions, 2 deletionsfs/xfs/xfs_trans.h
Loading
Please register or sign in to comment