Re: [PATCH v3] xfs: restore nofs context unconditionally in xfs_trans_roll

From: Carlos Maiolino

Date: Mon Aug 10 2026 - 08:00:18 EST


On Thu, 30 Jul 2026 17:30:02 +0800, Yun Zhou wrote:
> When __xfs_trans_commit() fails in xfs_trans_roll(), the NOFS context
> is cleared but only restored in the success path. This leaves the
> error path without nofs protection, causing a circular lock dependency
> between xfs_nondir_ilock_class and fs_reclaim:
>
> CPU0 CPU1
> ---- ----
> lock(&xfs_nondir_ilock_class);
> lock(fs_reclaim);
> lock(&xfs_nondir_ilock_class);
> lock(fs_reclaim);
>
> [...]

Applied to for-next, thanks!

[1/1] xfs: restore nofs context unconditionally in xfs_trans_roll
commit: 0241ea5fb0fe86d2a673163b2f5815111aadc7f7

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>