NFSv4: Fix an Oops during delegation callbacks

[ Upstream commit e39d8a186e ]

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>
This commit is contained in:
Trond Myklebust 2018-11-13 16:37:54 -05:00 • committed by Greg Kroah-Hartman
commit b5ccf0038f
2 changed files with 11 additions and 4 deletions