NFSv4: It is not safe to dereference lsp->ls_state in release_lockowner
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 19 Mar 2012 20:17:18 +0000 (16:17 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 20 Mar 2012 17:08:25 +0000 (13:08 -0400)
commit5ae67c4fee869c9b3c87b727a9ea511b6326b834
tree68fe22b71462c6e13eff3a6d637b79371c77441e
parentc4f1b62a4b50a01e8d820717906b674807ef9ca3
NFSv4: It is not safe to dereference lsp->ls_state in release_lockowner

It is quite possible for the release_lockowner RPC call to race with the
close RPC call, in which case, we cannot dereference lsp->ls_state in
order to find the nfs_server.

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