]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:24:15 +0000 (19:24 +0200)
commitcf59971a5b0c8562fa81bc1ada5fda2dab6c14c9
tree902bcd06bdd764d515b5e17120becbebc18b3d78
parent80738b386e9cfb730582d0c10bbde86f5256ddc5
NFSv4: Fix second deadlock in nfs4_evict_inode()

BugLink: https://bugs.launchpad.net/bugs/1934012
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/nfs/nfs4proc.c