OSDN Git Service

NFSv4.x: Drop the slot if nfs4_delegreturn_prepare waits for layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 Nov 2019 08:39:36 +0000 (09:39 +0100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 Nov 2019 15:37:17 +0000 (16:37 +0100)
commit5326de9e94bedcf7366e7e7625d4deb8c1f1ca8a
tree544d90ca1ed195416bbb5ae024a5a192e02d3ef2
parent5c441544f045e679afd6c3c6d9f7aaf5fa5f37b0
NFSv4.x: Drop the slot if nfs4_delegreturn_prepare waits for layoutreturn

If nfs4_delegreturn_prepare needs to wait for a layoutreturn to complete
then make sure we drop the sequence slot if we hold it.

Fixes: 1c5bd76d17cc ("pNFS: Enable layoutreturn operation for return-on-close")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c