NFSv4: Fix second deadlock in nfs4_evict_inode()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 1 Jun 2021 15:35:56 +0000 (11:35 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jun 2021 10:01:46 +0000 (12:01 +0200)
commitd973bd0d6e7f9b4ea976cc619e8d6e0d235b9056
treedb80e815851ef74efd16c6d7d069645f88337aba
parentc3b6cf64dfe4ef96e7341508d50d6998da7062c7
NFSv4: Fix second deadlock in nfs4_evict_inode()

commit c3aba897c6e67fa464ec02b1f17911577d619713 upstream.

If the inode is being evicted but has to return a layout first, then
that too can cause a deadlock in the corner case where the server
reboots.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c