SUNRPC: xprt_connect() don't abort the task if the transport isn't bound
If the transport isn't bound, then we should just return ENOTCONN, letting call_connect_status() and/or call_status() deal with retrying. Currently, we appear to abort all pending tasks with an EIO error. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -663,7 +663,7 @@ void xprt_connect(struct rpc_task *task)
|
||||
xprt, (xprt_connected(xprt) ? "is" : "is not"));
|
||||
|
||||
if (!xprt_bound(xprt)) {
|
||||
task->tk_status = -EIO;
|
||||
task->tk_status = -EAGAIN;
|
||||
return;
|
||||
}
|
||||
if (!xprt_lock_write(xprt, task))
|
||||
|
Reference in New Issue
Block a user