summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_icache.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-05-02 01:16:12 +0200
committerDave Chinner <dchinner@redhat.com>2023-05-02 01:16:12 +0200
commitb37c4c8339cd394ea6b8b415026603320a185651 (patch)
treea62bf357cf0cfce7c9b09bfa469375fcd16cc607 /fs/xfs/xfs_icache.c
parentxfs: explicitly specify cpu when forcing inodegc delayed work to run immediately (diff)
downloadlinux-b37c4c8339cd394ea6b8b415026603320a185651.tar.xz
linux-b37c4c8339cd394ea6b8b415026603320a185651.zip
xfs: check that per-cpu inodegc workers actually run on that cpu
Now that we've allegedly worked out the problem of the per-cpu inodegc workers being scheduled on the wrong cpu, let's put in a debugging knob to let us know if a worker ever gets mis-scheduled again. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_icache.c')
-rw-r--r--fs/xfs/xfs_icache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_icache.c b/fs/xfs/xfs_icache.c
index 58712113d5d6..4b63c065ef19 100644
--- a/fs/xfs/xfs_icache.c
+++ b/fs/xfs/xfs_icache.c
@@ -1856,6 +1856,8 @@ xfs_inodegc_worker(
struct xfs_inode *ip, *n;
unsigned int nofs_flag;
+ ASSERT(gc->cpu == smp_processor_id());
+
WRITE_ONCE(gc->items, 0);
if (!node)