]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
nfsd: Containerise filecache laundrette
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 18:18:05 +0000 (13:18 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:18:03 +0000 (15:18 +0200)
commitb26eba912d4ea0d0b6041c59cdd7fff80d83fff0
treee8c739308b99263681bd15e51234912501a0a860
parent3171504daf1f0eb2fab106a64e1e3c9ac2eec177
nfsd: Containerise filecache laundrette

BugLink: https://bugs.launchpad.net/bugs/1971496
commit 9542e6a643fc69d528dfb3303f145719c61d3050 upstream.

Ensure that if the filecache laundrette gets stuck, it only affects
the knfsd instances of one container.

The notifier callbacks can be called from various contexts so avoid
using synchonous filesystem operations that might deadlock.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Cc: Khazhy Kumykov <khazhy@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/nfsd/filecache.c
fs/nfsd/filecache.h
fs/nfsd/nfssvc.c