diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-03-11 14:09:39 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-03-11 14:09:39 -0400 |
commit | 01d37c428ae080563c0a3bb8bdfa88c65a6891d3 (patch) | |
tree | bfc1c9a6336d4b7058c742d4a3178f8f588f5b66 /net/sunrpc/xprt.c | |
parent | fba91afbec2c004e2c8733ae9e0ca6998e962c64 (diff) | |
download | linux-01d37c428ae080563c0a3bb8bdfa88c65a6891d3.tar.gz linux-01d37c428ae080563c0a3bb8bdfa88c65a6891d3.tar.bz2 linux-01d37c428ae080563c0a3bb8bdfa88c65a6891d3.zip |
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>
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r-- | net/sunrpc/xprt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 29e401bb612e..62098d101a1f 100644 --- a/net/sunrpc/xprt.c +++ b/net/sunrpc/xprt.c @@ -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)) |