OSDN Git Service

xfs: don't retry repairs harder when EAGAIN is returned
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:17 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:02 +0000 (15:25 -0800)
commit6bf2f87915970160ded16c310e2e8887deff97a2
tree4b2c026f4a838ee161c3d771dc437a2f927c1fe2
parent0a713bd41ea2b19904232b9c5278012c4361bc04
xfs: don't retry repairs harder when EAGAIN is returned

Repair functions will not return EAGAIN -- if they were not able to
obtain resources, they should return EDEADLOCK (like the rest of online
fsck) to signal that we need to grab all the resources and try again.
Hence we don't need to deal with this case except as a debugging
assertion.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/repair.c