lockd: Do not start the lockd thread before we've set nlmsvc_rqst->rq_task
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 2 Sep 2014 17:58:57 +0000 (13:58 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 2 Sep 2014 21:49:17 +0000 (17:49 -0400)
commitd4e89902990e3fae1b8d2ca501d2fa5f0657c053
tree686e185ebf2a0e6e4dac46fbacf036a54295ec48
parentccad7dad86d8c42b0aec7a3ce7f911e033bf3c6a
lockd: Do not start the lockd thread before we've set nlmsvc_rqst->rq_task

This fixes an Oopsable race when starting lockd.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c