]> err.no Git - linux-2.6/commit
NFS: Fix the mount regression
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 31 Aug 2007 14:45:17 +0000 (10:45 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 1 Sep 2007 03:26:45 +0000 (20:26 -0700)
commite89a5a43b95cdc4305b7c8e8121a380f02476636
treeba286205f1ad11119a06b77fb6671ce9aacac13a
parent36ad4885c47c2187822f2783fb46fde2d36bf200
NFS: Fix the mount regression

This avoids the recent NFS mount regression (returning EBUSY when
mounting the same filesystem twice with different parameters).

The best I can do given the constraints appears to be to have the kernel
first look for a superblock that matches both the fsid and the
user-specified mount options, and then spawn off a new superblock if
that search fails.

Note that this is not the same as specifying nosharecache everywhere
since nosharecache will never attempt to match an existing superblock.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: Hua Zhong <hzhong@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/super.c