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)
commit64ebe12494fd5d193f014ce38e1fd83cc57883c8
tree5f527daa9b47ed2cfc921ae4be5b9569b8ab9cc3
parent3a2b19d1ee5633f76ae8a88da7bc039a5d1732aa
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: 7919d0a27f1e "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