summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_iwalk.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-06-13 10:24:46 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-06-13 14:48:21 -0700
commitb928346710d49d90833eb40d65362dd32f27090f (patch)
tree5231642964081b513ccda5a9e4091739a6bdd0f9 /fs/xfs/xfs_iwalk.c
parent361ac8d7edee001ca3a38260e9c43a1f73f1d377 (diff)
xfs: use background worker pool when transactions can't get free space
In xfs_trans_alloc, if the block reservation call returns ENOSPC, we call xfs_blockgc_free_space with a NULL icwalk structure to try to free space. Each frontend thread that encounters this situation starts its own walk of the inode cache to see if it can find anything, which is wasteful since we don't have any additional selection criteria. For this one common case, create a function that reschedules all pending background work immediately and flushes the workqueue so that the scan can run in parallel. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_iwalk.c')
0 files changed, 0 insertions, 0 deletions