[PATCH 2/2] jffs2: reschedule between the data CRC checks of an inode

sashiko-bot at kernel.org sashiko-bot at kernel.org
Wed Nov 18 13:44:41 PST 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] jffs2: missing Fixes: trailer for lost cond_resched() in
  readinode
--

commit dc68a5ef42faf811ab61bd897a8b35c11291c24e
Author: Orgad Shaneh <orgads at gmail.com>

> jffs2: reschedule between the data CRC checks of an inode
>
> The first read of an inode checks the data CRC of each of its unchecked
> nodes, all in one call. On an Octeon board with an 8-bit NOR, a
> 46.6 MB file takes 13.8 s of kernel time there. Without kernel
> preemption, nothing else ran on that CPU in the meantime: an RT
> watchdog thread missed its deadline and the board rebooted. With
> this, the lookup takes as long, but the watchdog, the per-CPU
> workqueue and the other tasks of that CPU keep running.
>
> jffs2_get_inode_nodes() already reschedules per node while it reads
> the headers; do the same before each data check.
>
> Signed-off-by: Orgad Shaneh <orgads at gmail.com>

[Severity: Low]
Prior to commit df8e96f39103 ("[JFFS2] Improve read_inode memory usage,
v2."), jffs2_do_read_inode_internal() called cond_resched() on each node
while checking data CRCs and building the fragtree, which was dropped when
that loop moved into jffs2_build_inode_fragtree().  Should this include:

  Fixes: df8e96f39103 ("[JFFS2] Improve read_inode memory usage, v2.")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261118214045.107562-1-orgads@gmail.com?part=2



More information about the linux-mtd mailing list