OSDN Git Service

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 09:55:02 +0000 (11:55 +0200)
commit9cd420e572e85b311db6ec79a9607bd249f59659
treef02f7775ce8d2ed3eb9963c11e5406d0bd79c02d
parent42c10b0db064e45f5c5ae7019bbf2168ffab766c
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