]> git.baikalelectronics.ru Git - kernel.git/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)
commit2ca128af2c09692549ddff5ac9dee699ebb69cc7
treeba286205f1ad11119a06b77fb6671ce9aacac13a
parentb396759ef5cf0bee129ff70c4123b7e1621f48f1
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