summaryrefslogtreecommitdiffstats
path: root/fs/nfs/getroot.c
diff options
context:
space:
mode:
authorTrond Myklebust2007-07-26 23:47:34 +0200
committerTrond Myklebust2007-08-07 21:13:19 +0200
commit45328c354e8ae16b67cb3adb72ab57459f9e5fd6 (patch)
treef0c4271a0c9f6b8d9b499f22fffc1804419d49c8 /fs/nfs/getroot.c
parentNFSv4: Fix a locking regression in nfs4_set_mode_locked() (diff)
downloadkernel-qcow2-linux-45328c354e8ae16b67cb3adb72ab57459f9e5fd6.tar.gz
kernel-qcow2-linux-45328c354e8ae16b67cb3adb72ab57459f9e5fd6.tar.xz
kernel-qcow2-linux-45328c354e8ae16b67cb3adb72ab57459f9e5fd6.zip
NFS: Fix NFSv4 open stateid regressions
Do not allow cached open for O_RDONLY or O_WRONLY unless the file has been previously opened in these modes. Also Fix the calculation of the mode in nfs4_close_prepare. We should only issue an OPEN_DOWNGRADE if we're sure that we will still be holding the correct open modes. This may not be the case if we've been doing delegated opens. Finally, there is no need to adjust the open mode bit flags in nfs4_close_done(): that has already been done in nfs4_close_prepare(). Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/getroot.c')
0 files changed, 0 insertions, 0 deletions