[PATCH 0/2] Add cond_resched() in some place to avoid softlockup

alexjlzheng@gmail.com posted 2 patches 3 days, 13 hours ago
fs/xfs/xfs_buf.c     | 2 ++
fs/xfs/xfs_log_cil.c | 3 +++
2 files changed, 5 insertions(+)
[PATCH 0/2] Add cond_resched() in some place to avoid softlockup
Posted by alexjlzheng@gmail.com 3 days, 13 hours ago
From: Jinliang Zheng <alexjlzheng@tencent.com>

We recently observed several XFS-related softlockups in non-preempt
kernels during stability testing, and we believe adding a few
cond_resched()calls would be beneficial.

Jinliang Zheng (2):
  xfs: take a breath in xlog_ioend_work()
  xfs: take a breath in xfsaild()

 fs/xfs/xfs_buf.c     | 2 ++
 fs/xfs/xfs_log_cil.c | 3 +++
 2 files changed, 5 insertions(+)

-- 
2.49.0
Re: [PATCH 0/2] Add cond_resched() in some place to avoid softlockup
Posted by Dave Chinner 3 days, 11 hours ago
On Thu, Feb 05, 2026 at 04:26:19PM +0800, alexjlzheng@gmail.com wrote:
> From: Jinliang Zheng <alexjlzheng@tencent.com>
> 
> We recently observed several XFS-related softlockups in non-preempt
> kernels during stability testing, and we believe adding a few
> cond_resched()calls would be beneficial.

I as under the impression that there was a general kernel-wide NAK
in place for adding new cond_resched() points to hack around
the CONFIG_PREEMPT_NONE problems once CONFIG_PREEMPT_LAZY was
introduced...

https://lore.kernel.org/lkml/87jzshhexi.ffs@tglx/

-Dave.
-- 
Dave Chinner
david@fromorbit.com