aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc_xprt.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2010-10-23 11:04:12 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-25 17:58:40 -0400
commit7e4fdd0744fcb9f08854c37643bf529c5945cc36 (patch)
tree4587d216b75107bc173a66396e5ca6a4d4e1b0ce /net/sunrpc/svc_xprt.c
parenta663bdd8c5d18d287f7468470816c9e0e66343c1 (diff)
svcrpc: never clear XPT_BUSY on dead xprt
Once an xprt has been deleted, there's no reason to allow it to be enqueued--at worst, that might cause the xprt to be re-added to some global list, resulting in later corruption. Also, note this leaves us with no need for the reference-count manipulation here. Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r--net/sunrpc/svc_xprt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c
index bef1e8844a2c..1b0673c6e986 100644
--- a/net/sunrpc/svc_xprt.c
+++ b/net/sunrpc/svc_xprt.c
@@ -936,10 +936,7 @@ void svc_close_xprt(struct svc_xprt *xprt)
936 /* someone else will have to effect the close */ 936 /* someone else will have to effect the close */
937 return; 937 return;
938 938
939 svc_xprt_get(xprt);
940 svc_delete_xprt(xprt); 939 svc_delete_xprt(xprt);
941 clear_bit(XPT_BUSY, &xprt->xpt_flags);
942 svc_xprt_put(xprt);
943} 940}
944EXPORT_SYMBOL_GPL(svc_close_xprt); 941EXPORT_SYMBOL_GPL(svc_close_xprt);
945 942