]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc92c4735fb1adea29ccc78c907587fbca0dabb8b
treeb274ddc0b8fb3387e7a10b9aaa9b2f5850b79f7f
parentdf336d61bb2b2730ec7906654a469f0d053fa402
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