public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Mkrtchyan, Tigran" <tigran.mkrtchyan@desy.de>
To: linux-nfs <linux-nfs@vger.kernel.org>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
Subject: Unnecessary dependecy between nfsv3 and flexfiles modules
Date: Mon, 28 Aug 2023 16:42:43 +0200 (CEST)	[thread overview]
Message-ID: <2016757990.1241869.1693233763403.JavaMail.zimbra@desy.de> (raw)

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


Dear NFS developers,

I have noticed an unnecessary dependency between the pNFS flexfiles layout driver and NFSv3 modules:

```Kconfig 
config PNFS_FLEXFILE_LAYOUT
        tristate
        depends on NFS_V4_1 && NFS_V3
        default NFS_V4

```

Thus, by disabling v3 (as one might do if only v4.1+ is needed), the flexfiles
layout driver is not available anymore.

It looks like, that flexfiles layout doesn't really depend on NFSv3 code and if I remove
this dependency, that I can build and run a kernel with flexfiles layout driver, but without
NFSv3 support:


```
[root@os-46-nfs-devel ~]# lsmod
Module                  Size  Used by
nfs_layout_flexfiles    61440  1
nfsv4                1200128  2 nfs_layout_flexfiles
dns_resolver           12288  1 nfsv4
[root@os-46-nfs-devel ~]#
```

But might be there is a non-obvious dependency that I miss. Otherwise I happy to fix that :)

Best regards,
   Tigran.

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

                 reply	other threads:[~2023-08-28 14:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=2016757990.1241869.1693233763403.JavaMail.zimbra@desy.de \
    --to=tigran.mkrtchyan@desy.de \
    --cc=linux-nfs@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox