]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39538a7974653c9c4dc1b0ba32ef7aab2618fb83
tree3809ff1f036c1ecbdf7fd265046e49fdefe8eb68
parentab60087ab81b4d236953e02b8ddd5a28f40537a3
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