]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/nfs/nfs4proc.c
NFSv4: Use the open stateid if the delegation has the wrong mode
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 20 Apr 2013 05:25:45 +0000 (01:25 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 20 Apr 2013 05:39:42 +0000 (01:39 -0400)
commit92b40e93849e29f9ca661de6442bb66282738bf7
tree3809ff1f036c1ecbdf7fd265046e49fdefe8eb68
parent042ad0b398ea4e937e38324dd096bdf9d2c495f7
NFSv4: Use the open stateid if the delegation has the wrong mode

Fix nfs4_select_rw_stateid() so that it chooses the open stateid
(or an all-zero stateid) if the delegation does not match the selected
read/write mode.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c