SUNRPC: Ensure call_connect_status() deals correctly with SOFTCONN tasks
authorSteve Dickson <steved@redhat.com>
Thu, 20 Mar 2014 15:23:03 +0000 (11:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:32:50 +0000 (13:32 +0200)
commitf1804e7cae02dab74baa07aff4faf10b6db123fd
treedff7d6c3b647ff2ff5e6ea5f7ebfbd73a911ccfb
parentd1c6070174b2cd7fd218dd4cb24ae60d46c7e22b
SUNRPC: Ensure call_connect_status() deals correctly with SOFTCONN tasks

commit 1fa3e2eb9db07f30a605c66d1a2fdde4b24e74d5 upstream.

Don't schedule an rpc_delay before checking to see if the task
is a SOFTCONN because the tk_callback from the delay (__rpc_atrun)
clears the task status before the rpc_exit_task can be run.

Signed-off-by: Steve Dickson <steved@redhat.com>
Fixes: 561ec1603171c (SUNRPC: call_connect_status should recheck...)
Link: http://lkml.kernel.org/r/5329CF7C.7090308@RedHat.com
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/clnt.c