NFSv4: Fix an Oops during delegation callbacks
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 13 Nov 2018 21:37:54 +0000 (16:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:33 +0000 (09:37 +0100)
commitb5ccf0038f34a5a207d9c33d8cc1e40b2faf6725
tree6077272bdd892acf84b2d6d0531f3d1370e42538
parent2bc40f89f47e3b6fb63a2b186073ef1ce75dca53
NFSv4: Fix an Oops during delegation callbacks

[ Upstream commit e39d8a186ed002854196668cb7562ffdfbc6d379 ]

If the server sends a CB_GETATTR or a CB_RECALL while the filesystem is
being unmounted, then we can Oops when releasing the inode in
nfs4_callback_getattr() and nfs4_callback_recall().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/callback_proc.c
fs/nfs/delegation.c