Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 849b286f authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 65857d57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment