All of lore.kernel.org
 help / color / mirror / Atom feed
From: Salvatore Bonaccorso <carnil@debian.org>
To: Julien Leclerc <julien.leclerc@saatchi.fr>, 1153524@bugs.debian.org
Cc: Jeff Layton <jlayton@kernel.org>,
	"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
	Chuck Lever <chuck.lever@oracle.com>,
	"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: Bug#1153524: [REGRESSION] nfsd: blocking NFSv4.2 LOCK never woken by CB_NOTIFY_LOCK since 6.12, cross-client waiters stall 30 s
Date: Fri, 4 Dec 2026 15:08:06 +0100	[thread overview]
Message-ID: <axLJRpxIRl8q4dcD@eldamar.lan> (raw)
In-Reply-To: <SADPR02MB574770B2C27CA5277D9878958CE84D2@SADPR02MB574770.namprd02.prod.outlook.com>

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 <julien.leclerc@saatchi.fr>
> 
> 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.

Regards,
Salvatore

  reply	other threads:[~2026-12-04 14:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:56 [REGRESSION] nfsd: blocking NFSv4.2 LOCK never woken by CB_NOTIFY_LOCK since 6.12, cross-client waiters stall 30 s Julien Leclerc
2026-12-01 14:06 ` Jeff Layton
2026-12-01 17:08   ` Julien Leclerc
2026-12-04 14:08     ` Salvatore Bonaccorso [this message]
2026-12-04 14:24       ` Bug#1153524: " Jeff Layton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axLJRpxIRl8q4dcD@eldamar.lan \
    --to=carnil@debian.org \
    --cc=1153524@bugs.debian.org \
    --cc=chuck.lever@oracle.com \
    --cc=jlayton@kernel.org \
    --cc=julien.leclerc@saatchi.fr \
    --cc=linux-nfs@vger.kernel.org \
    --cc=regressions@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.