Skip to content
Commit 8e948c36 authored by Jeff Layton's avatar Jeff Layton Committed by Chuck Lever
Browse files

nfsd: fix oops when reading pool_stats before server is started

Sourbh reported an oops that is triggerable by trying to read the
pool_stats procfile before nfsd had been started. Move the check for a
NULL serv in svc_pool_stats_start above the mutex acquisition, and fix
the stop routine not to unlock the mutex if there is no serv yet.

Fixes: 7b207ccd

 ("svc: don't hold reference for poolstats, only mutex.")
Reported-by: default avatarSourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Tested-by: default avatarSourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 4a77c3de
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment