nfs: do not start the callback thread until we set rqstp->rq_task
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 2 Sep 2014 17:58:58 +0000 (13:58 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 2 Sep 2014 21:53:30 +0000 (17:53 -0400)
commit66f09ca717e7905e0eebe000b86e27d0274b95ac
treeec63e3a95616c279d9b5ae6014daf198f0a93603
parentd4e89902990e3fae1b8d2ca501d2fa5f0657c053
nfs: do not start the callback thread until we set rqstp->rq_task

This fixes an Oopsable race when starting up the callback server.

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/nfs/callback.c