projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22763c5
)
SUNRPC: Ensure that we honour autoclose before attempting to reconnect
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 3 Dec 2009 13:10:17 +0000
(08:10 -0500)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 3 Dec 2009 13:10:17 +0000
(08:10 -0500)
If the XPRT_CLOSE_WAIT flag is set, we need to ensure that we call
xprt->ops->close() while holding xprt_lock_write() before we can
start reconnecting.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprt.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/xprt.c
b/net/sunrpc/xprt.c
index fd46d42afa89ed89e6fe2813822f7570e6683160..469de292c23c34b8ba9a0f9ea24e07d4b77d5e09 100644
(file)
--- a/
net/sunrpc/xprt.c
+++ b/
net/sunrpc/xprt.c
@@
-700,6
+700,10
@@
void xprt_connect(struct rpc_task *task)
}
if (!xprt_lock_write(xprt, task))
return;
+
+ if (test_and_clear_bit(XPRT_CLOSE_WAIT, &xprt->state))
+ xprt->ops->close(xprt);
+
if (xprt_connected(xprt))
xprt_release_write(xprt, task);
else {