]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NLM,NFSv4: Don't put UNLOCK requests on the wire unless we hold a lock
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 29 Jun 2006 20:38:34 +0000 (16:38 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 5 Jul 2006 17:13:17 +0000 (13:13 -0400)
commit9b07357490e5c7a1c3c2b6f4679d7ee4b4185ecd
tree020b1e8ed07374d45ae2691cae8ed550ef123137
parentf475ae957db66650db66916c62604ac27409d884
NLM,NFSv4: Don't put UNLOCK requests on the wire unless we hold a lock

Use the new behaviour of {flock,posix}_file_lock(F_UNLCK) to determine if
we held a lock, and only send the RPC request to the server if this was the
case.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/clntproc.c
fs/nfs/nfs4proc.c