diff options
author | Dave Chinner <dchinner@redhat.com> | 2021-02-23 19:26:06 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-02-25 17:07:04 +0100 |
commit | 756b1c343333a5aefcc26b0409f3fd16f72281bf (patch) | |
tree | 901db3f2a70fa09b78defb0dac555948fda57b1e /drivers/scsi/sd_zbc.c | |
parent | xfs: don't nest transactions when scanning for eofblocks (diff) | |
download | linux-756b1c343333a5aefcc26b0409f3fd16f72281bf.tar.xz linux-756b1c343333a5aefcc26b0409f3fd16f72281bf.zip |
xfs: use current->journal_info for detecting transaction recursion
Because the iomap code using PF_MEMALLOC_NOFS to detect transaction
recursion in XFS is just wrong. Remove it from the iomap code and
replace it with XFS specific internal checks using
current->journal_info instead.
[djwong: This change also realigns the lifetime of NOFS flag changes to
match the incore transaction, instead of the inconsistent scheme we have
now.]
Fixes: 9070733b4efa ("xfs: abstract PF_FSTRANS to PF_MEMALLOC_NOFS")
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/sd_zbc.c')
0 files changed, 0 insertions, 0 deletions