diff options
author | Omar Sandoval <osandov@fb.com> | 2019-11-26 16:58:08 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-12-02 17:58:51 -0800 |
commit | 69ffe5960df16938bccfe1b65382af0b3de51265 (patch) | |
tree | ff6718e4f2970c735d9d89c0b63cbfd58fc81f17 /fs/f2fs/node.c | |
parent | 0c4da70c83d41a8461fdf50a3f7b292ecb04e378 (diff) |
xfs: don't check for AG deadlock for realtime files in bunmapi
Commit 5b094d6dac04 ("xfs: fix multi-AG deadlock in xfs_bunmapi") added
a check in __xfs_bunmapi() to stop early if we would touch multiple AGs
in the wrong order. However, this check isn't applicable for realtime
files. In most cases, it just makes us do unnecessary commits. However,
without the fix from the previous commit ("xfs: fix realtime file data
space leak"), if the last and second-to-last extents also happen to have
different "AG numbers", then the break actually causes __xfs_bunmapi()
to return without making any progress, which sends
xfs_itruncate_extents_flags() into an infinite loop.
Fixes: 5b094d6dac04 ("xfs: fix multi-AG deadlock in xfs_bunmapi")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/f2fs/node.c')
0 files changed, 0 insertions, 0 deletions