]> git.proxmox.com Git - mirror_ubuntu-focal-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:27:25 +0000 (19:27 +0200)
commitbcf024a0cc8226b491bbc4bc987394a41d007e6d
tree5bbd45d5367bb853950072c524a3f300e5431028
parent507fe4b039dd9054558c0c397665d2bb37106b1a
NFSv4: Fix second deadlock in nfs4_evict_inode()

BugLink: https://bugs.launchpad.net/bugs/1933369
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: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/nfs/nfs4proc.c