Re: [PATCH] xfs: fix skipped flushing items not counted in xfsaild_push()

From: MingTao Huang

Date: Tue Dec 01 2026 - 23:47:54 EST


Hi Dave and Brian,

Sorry for the long delay in following up. I've been tied up with
other work for the past two months and only recently had time to
get back to this.

I revisited the vmcore from the original xfsaild soft lockup and
found that xfsaild and a stress-ng lockbus worker were running on
the two SMT threads of the same physical core at dump time.

The lockbus stressor is part of the mixed workload in our stability
suite. It exercises locked atomic operations that cross cache-line
boundaries. These split locks can stall memory accesses on other
CPUs, and the SMT sibling suffers the most. In our comparison tests,
xfsaild used roughly 3-4x as much CPU time per counted AIL push
decision when the lockbus worker ran on its SMT sibling as when it
ran on a separate physical core.

I reproduced the soft lockup by generating a large batch of
metadata with a burst of directory creation and pinning xfsaild
and a lockbus worker to the same physical core.

The original vmcore showed many AIL items sharing one LSN. As Dave
pointed out, the batch cutoff currently requires both count > 1000
and an LSN change, so xfsaild can queue a large delwri batch within
a single LSN group. In the original vmcore, count reached 5485 in
that push. The AIL scan and delwri submission loops have no explicit
reschedule points. With our PREEMPT_NONE default, xfsaild can run
through both phases without a context switch.

My current read is that the same-core lockbus load stretched an
already large push enough to keep the watchdog task from being
scheduled before the timeout.

I'm not sure whether running the lockbus stressor alongside
filesystem stress is a meaningful part of Linux stability testing,
or whether it mostly creates a pathological load that real systems
would not see. Would it make sense to drop it from our mixed
stability workload?

Thanks,
MingTao