]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4: Don't use open stateids that have the wrong open mode
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 4 Apr 2012 17:51:33 +0000 (10:51 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 5 Apr 2012 16:46:59 +0000 (09:46 -0700)
commit5ec0ed6cd88c65464092533787706d9ecfb85320
treef144441c47327b0e49e6488c01c6c23cfca81b67
parent6c216ec636f75d834461be15f83ec41a6759bd2b
NFSv4: Don't use open stateids that have the wrong open mode

If the client is doing an operation that needs a particular open
mode, then nfs4_select_rw_stateid() should only copy the
open stateid if the latter has the correct open mode.

Otherwise we should just use the zero stateid.

Reported-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4state.c