]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix panic in posix_unblock_lock called from nfs4_laundromat
authorNaofumi Honda <honda@math.sci.hokudai.ac.jp>
Thu, 9 Nov 2017 15:57:16 +0000 (10:57 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 27 Nov 2017 21:45:11 +0000 (16:45 -0500)
commitaa32497feccfe965eb7c4c7988ded91510190e4c
tree5f527daa9b47ed2cfc921ae4be5b9569b8ab9cc3
parent415aec2cc9e3f81669f4c1d290b88099530bb2ac
nfsd: fix panic in posix_unblock_lock called from nfs4_laundromat

From kernel 4.9, my two nfsv4 servers sometimes suffer from
    "panic: unable to handle kernel page request"
in posix_unblock_lock() called from nfs4_laundromat().

These panics diseappear if we revert the commit "nfsd: add a LRU list
for blocked locks".

The cause appears to be a typo in nfs4_laundromat(), which is also
present in nfs4_state_shutdown_net().

Cc: stable@vger.kernel.org
Fixes: 8c38dd2e0bcd "nfsd: add a LRU list for blocked locks"
Cc: jlayton@redhat.com
Reveiwed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c