On Fri, 2026-12-04 at 15:08 +0100, Salvatore Bonaccorso wrote:
> Hi Jeff, hi Julien
> 
> On Tue, Dec 01, 2026 at 05:08:26PM +0000, Julien Leclerc wrote:
> > Hi Jeff,
> > 
> > Thanks for digging into this so quickly. Your explanation matches
> > everything we saw in the traces.
> > 
> > I tested the four commits on top of v6.12.118, resolving the fs.h
> > conflict the same way (FOP_ASYNC_LOCK as (1 << 6)), on a separate test
> > setup:
> > 
> > - Server: Debian 13, x86_64, v6.12.118 + the 4 commits, built with the
> >   config of the Debian 6.12.118 kernel; export on ext4 with the same
> >   options as our production server.
> > - Clients: two Debian 13 hosts (Debian 6.12.118), mounted with
> >   vers=4.2.
> > - Test: client A holds an exclusive flock for 4 s, client B asks for
> >   it 1 s later with flock -w 60.
> > 
> > Debian 6.12.118 on the server (unpatched):
> > 
> >   A holds, B waits:   31.32 s, 31.37 s
> >   B holds, A waits:   30.64 s
> >   A holds, A waits:    3.59 s (same client, control)
> > 
> > v6.12.118 + the 4 commits on the server:
> > 
> >   A holds, B waits:    3.16 s, 3.04 s, 2.98 s, 3.17 s
> >   B holds, A waits:    2.99 s, 2.96 s
> >   A holds, A waits:    2.98 s, 2.98 s (same client, control)
> > 
> > The waiter now gets the lock as soon as it is released (the remaining
> > ~3 s is the holder's sleep). With the nfsd tracepoints enabled, the
> > LOCKU is followed by nfsd_cb_notify_lock and nfsd_cb_queue for the
> > waiting client, then nfsd_cb_notify_lock_done. A non-blocking request
> > (flock -n) still fails immediately.
> > 
> > Tested-by: Julien Leclerc <[email protected]>
> > 
> > Thanks again for the quick backport.
> 
> Jeff, are you going to submit those? I would like to release 6.12.120
> soon for trixie, and ideally I pick as well up those 4 commits to fix
> the regression Julien is seeing, and would want to make sure they get
> at least in in 6.12.121 later and we can drop those.
> 

I wasn't planning on it. It would be great if someone with a vested
interest in getting this into v6.12-stable could do this. If you do,
feel free to cc me and I'll plan to review it.
-- 
Jeff Layton <[email protected]>

Reply via email to