diff options
author | J. Bruce Fields <bfields@redhat.com> | 2012-08-14 15:27:23 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-08-21 17:07:36 -0400 |
commit | c3341966943284ab3618a1814cefd693ad9aa736 (patch) | |
tree | 7319ce55f509fc2a3ef119b8d9d4eabd138b9a80 /net/sunrpc | |
parent | a8e10078a87c8a2c3c8d0f9856c0f74272fc0f74 (diff) |
svcrpc: make svc_create_xprt enqueue on clearing XPT_BUSY
Whenever we clear XPT_BUSY we should call svc_xprt_enqueue(). Without
that we may fail to notice any events (such as new connections) that
arrived while XPT_BUSY was set.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index e1810b947dea..4801fdac2c9d 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c | |||
@@ -238,7 +238,7 @@ int svc_create_xprt(struct svc_serv *serv, const char *xprt_name, | |||
238 | list_add(&newxprt->xpt_list, &serv->sv_permsocks); | 238 | list_add(&newxprt->xpt_list, &serv->sv_permsocks); |
239 | spin_unlock_bh(&serv->sv_lock); | 239 | spin_unlock_bh(&serv->sv_lock); |
240 | newport = svc_xprt_local_port(newxprt); | 240 | newport = svc_xprt_local_port(newxprt); |
241 | clear_bit(XPT_BUSY, &newxprt->xpt_flags); | 241 | svc_xprt_received(newxprt); |
242 | return newport; | 242 | return newport; |
243 | } | 243 | } |
244 | err: | 244 | err: |