summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_dquot.h
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-07-18 15:34:29 -0700
committerDarrick J. Wong <djwong@kernel.org>2022-11-09 19:07:13 -0800
commit6e39044ed83c19082b624e001fb70bef7041839b (patch)
tree9ae60a466c5d71d76a45748abae6d8c1a21dc609 /fs/xfs/xfs_dquot.h
parent41647d914da91ad4280a632c5cbee97cf6f7020a (diff)
xfs: clean up scrub context if scrub setup returns -EDEADLOCK
It has been a longstanding convention that online scrub and repair functions can return -EDEADLOCK to signal that they weren't able to obtain some necessary resource. When this happens, the scrub framework is supposed to release all resources attached to the scrub context, set the TRY_HARDER flag in the scrub context flags, and try again. In this context, individual scrub functions are supposed to take all the resources they (incorrectly) speculated were not necessary. We're about to make it so that the functions that lock and wait for a filesystem AG can also return EDEADLOCK to signal that we need to try again with the drain waiters enabled. Therefore, refactor xfs_scrub_metadata to support this behavior for ->setup() functions. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_dquot.h')
0 files changed, 0 insertions, 0 deletions