mirror of https://gitee.com/openkylin/linux.git
rpc/rdma: goto instead of copypaste
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
79f55f11a0
commit
b1721d2bb9
|
@ -646,8 +646,7 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)
|
||||||
ret = rdma_read_xdr(rdma_xprt, rmsgp, rqstp, ctxt);
|
ret = rdma_read_xdr(rdma_xprt, rmsgp, rqstp, ctxt);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
/* read-list posted, defer until data received from client. */
|
/* read-list posted, defer until data received from client. */
|
||||||
svc_xprt_received(xprt);
|
goto defer;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
/* Post of read-list failed, free context. */
|
/* Post of read-list failed, free context. */
|
||||||
|
@ -679,6 +678,7 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)
|
||||||
* close bit and call svc_xprt_delete
|
* close bit and call svc_xprt_delete
|
||||||
*/
|
*/
|
||||||
set_bit(XPT_CLOSE, &xprt->xpt_flags);
|
set_bit(XPT_CLOSE, &xprt->xpt_flags);
|
||||||
|
defer:
|
||||||
svc_xprt_received(xprt);
|
svc_xprt_received(xprt);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue