NFS: Clear up state owner lock usage
authorAnna Schumaker <Anna.Schumaker@netapp.com>
Wed, 3 Sep 2014 18:15:40 +0000 (14:15 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:00 +0000 (12:47 -0700)
commit61beef75cc5bae119e500c9f25daad8596c7cbe4
treeb274ddc0b8fb3387e7a10b9aaa9b2f5850b79f7f
parent0f7a622ca61621f951af01448b956f2ecf5fad99
NFS: Clear up state owner lock usage

can_open_cached() reads values out of the state structure, meaning that
we need the so_lock to have a correct return value.  As a bonus, this
helps clear up some potentially confusing code.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c