Please consider the following 2 patches for stable 5.4. They applied cleanly to 5.4.y for me, and fix a deadlock we have experienced. (See discussion at https://lore.kernel.org/linux-nfs/a9cf9bcd72a187127b73042a9369e17bd5a0e93d.c... ). These patches are from 5.5, so newer kernels should not need it. I looked at 4.19, and it looks like this issue should not exist in that kernel (we don't have filecache.c and it's associated shrinker). I have not looked at older kernels, but presume the issue also does not apply there.
9542e6a643fc ("nfsd: Containerise filecache laundrette") 36ebbdb96b69 ("nfsd: cleanup nfsd_file_lru_dispose()")