]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4.1: nfs4_proc_layoutreturn must always drop the plh_block_lgets count
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 24 Sep 2012 18:18:39 +0000 (14:18 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 24 Sep 2012 19:54:23 +0000 (15:54 -0400)
commitf743c735b817547b590d36a6e275235c7beb8600
tree43ff62a6cd331e32ae98c89629d4b8cc5f9bc5aa
parentbe49de305972753bdd1ffb5ec85ca74de939620a
NFSv4.1: nfs4_proc_layoutreturn must always drop the plh_block_lgets count

Currently it does not do so if the RPC call failed to start. Fix is to
move the decrement of plh_block_lgets into nfs4_layoutreturn_release.

Also remove a redundant test of task->tk_status in nfs4_layoutreturn_done:
if lrp->res.lrs_present is set, then obviously the RPC call succeeded.

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