All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mkrtchyan, Tigran" <tigran.mkrtchyan@desy.de>
To: Benjamin Coddington <ben.coddington@hammerspace.com>
Cc: Roberto Bergantinos Corpas <rbergant@redhat.com>,
	 Mike Snitzer <snitzer@kernel.org>,
	 Antonio Alvarez Feijoo <antonio.feijoo@suse.com>,
	 linux-nfs <linux-nfs@vger.kernel.org>,
	 Anna Schumaker <anna.schumaker@hammerspace.com>,
	 Trond Myklebust <trond.myklebust@hammerspace.com>
Subject: Re: [PATCH] NFSv4/flexfiles: add a soft dependency on nfsv3
Date: Fri, 23 Oct 2026 16:35:24 +0200 (CEST)	[thread overview]
Message-ID: <1015823097.11117914.1792766124992.JavaMail.zimbra@desy.de> (raw)
In-Reply-To: <1925D89E-8A84-4FE3-95BC-93061E6578BC@hammerspace.com>

[-- Attachment #1: Type: text/plain, Size: 2342 bytes --]


Frankly, I think this is my change that has introduced the trouble:

a68c6fbb638a ("nfs41: drop dependency between flexfiles layout driver and NFSv3 modules")

The intent was to be able to build a kernel with flexfiles support even if NFSv3 is disabled.
No objections if you want to revert it.

Best regards,
   Tigran.


----- Original Message -----
> From: "Benjamin Coddington" <ben.coddington@hammerspace.com>
> To: "Roberto Bergantinos Corpas" <rbergant@redhat.com>, "Mike Snitzer" <snitzer@kernel.org>
> Cc: "Antonio Alvarez Feijoo" <antonio.feijoo@suse.com>, "linux-nfs" <linux-nfs@vger.kernel.org>, "Mike Snitzer"
> <snitzer@kernel.org>, "Anna Schumaker" <anna.schumaker@hammerspace.com>, "Trond Myklebust"
> <trond.myklebust@hammerspace.com>
> Sent: Friday, 23 October, 2026 16:16:32
> Subject: Re: [PATCH] NFSv4/flexfiles: add a soft dependency on nfsv3

> On 23 Oct 2026, at 8:30, Roberto Bergantinos Corpas wrote:
> 
>> There is another problematic case for this problem : if an
>> unprivileged container attempts pNFS I/O, SELinux may block the
>> request_module() call, leading to a writeback hang instead of a boot hang.
>>
>> Having the module pre-loaded at mount time avoids that scenario too.
> 
> I think this is a stronger case than the nfs-root, which already requires a
> sysadmin to have knowledge and desire to configure the client a certain way,
> and can certainly apply the work-around.
> 
> Roberto's case would look functional to the admin, and the failure would
> happen later and be difficult to diagnose.
> 
> I think Fixes: 7a375cafc14e (7.2.y) is the accurate tag, though - because
> before that the -EPROTONOSUPPORT would fall back to the MDS - it gives the
> WARN, but doesn't hang the system.
> 
> I also think 7a375cafc14e also needs a follow-on fix (Cc: Mike) - because it
> now causes permanent failure cases to retry forever- we should probably just
> fail the IO.
> 
> The last thing here is that the MODULE_SOFTDEP is just informative, it only
> advises modprobe and initramfs builders.  It not going to fix
> CONFIG_NFS_V4=y with CONFIG_NFS_V3=n or m.  So - I think we should just make
> flexfiles publish a hard dependency on a v3 symbol, which fixes the module
> dependency directly, and also fixup Kconfig so that there aren't unexpected
> build failures as a result.
> 
> My 2 cents,
> 
> Ben

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2309 bytes --]

  reply	other threads:[~2026-10-23 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 13:35 [PATCH] NFSv4/flexfiles: add a soft dependency on nfsv3 Antonio Alvarez Feijoo
2026-10-23 12:30 ` Roberto Bergantinos Corpas
2026-10-23 14:16   ` Benjamin Coddington
2026-10-23 14:35     ` Mkrtchyan, Tigran [this message]
2026-10-26 12:09       ` Roberto Bergantinos Corpas

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=1015823097.11117914.1792766124992.JavaMail.zimbra@desy.de \
    --to=tigran.mkrtchyan@desy.de \
    --cc=anna.schumaker@hammerspace.com \
    --cc=antonio.feijoo@suse.com \
    --cc=ben.coddington@hammerspace.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=rbergant@redhat.com \
    --cc=snitzer@kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    /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.