OSDN Git Service

NFS: Ensure we time out if a delegreturn does not complete
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 20 Dec 2019 15:43:37 +0000 (10:43 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 16 Mar 2020 12:34:28 +0000 (08:34 -0400)
commit244fcd2f9a904523f1b8c1a6c94749e230ac053a
treedd7944fcbacf2fa57c5f40eb89608cbeb4916dca
parent59b5639490f51aa604d18064dcf0c2d72eb1decf
NFS: Ensure we time out if a delegreturn does not complete

We can't allow delegreturn to hold up nfs4_evict_inode() forever,
since that can cause the memory shrinkers to block. This patch
therefore ensures that we eventually time out, and complete the
reclaim of the inode.

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