Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] NFSv4: Add modalias for "nfs4"
@ 2012-04-27 13:10 Josh Boyer
  2012-04-27 13:30 ` Jeff Layton
  2012-04-27 14:19 ` Jim Rees
  0 siblings, 2 replies; 11+ messages in thread
From: Josh Boyer @ 2012-04-27 13:10 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-nfs, linux-kernel

When NFSv4 is configured, the support goes into the nfs.ko module.
However, nfs-utils seems to pass "nfs4" as the fileststem type for
NFSv4 mounts.  If the nfs module is not already loaded, the kernel
will eventually do a module request for "nfs4".  Apparently, this
has worked until now as the distributions ship a module config file
that manually aliases "nfs4" to "nfs".

There is really no need to do this, as the kernel can provide a
module alias internally for nfs4.  This adds that.

Signed-off-by: Josh Boyer <jwboyer@redhat.com>
---
 fs/nfs/nfs4proc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 60d5f4c..d6929c3 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -6550,6 +6550,7 @@ const struct xattr_handler *nfs4_xattr_handlers[] = {
 module_param(max_session_slots, ushort, 0644);
 MODULE_PARM_DESC(max_session_slots, "Maximum number of outstanding NFSv4.1 "
 		"requests the client will negotiate");
+MODULE_ALIAS("nfs4");
 
 /*
  * Local variables:
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-04-27 15:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-27 13:10 [PATCH] NFSv4: Add modalias for "nfs4" Josh Boyer
2012-04-27 13:30 ` Jeff Layton
2012-04-27 14:19 ` Jim Rees
2012-04-27 14:48   ` Josh Boyer
2012-04-27 14:50     ` Myklebust, Trond
2012-04-27 14:53       ` Josh Boyer
2012-04-27 15:02         ` Myklebust, Trond
2012-04-27 15:14           ` Josh Boyer
2012-04-27 15:21             ` Myklebust, Trond
2012-04-27 15:41               ` Josh Boyer
2012-04-27 15:27           ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox