|
@@ -794,7 +794,8 @@ int svc_send(struct svc_rqst *rqstp)
|
|
|
|
|
|
/* Grab mutex to serialize outgoing data. */
|
|
/* Grab mutex to serialize outgoing data. */
|
|
mutex_lock(&xprt->xpt_mutex);
|
|
mutex_lock(&xprt->xpt_mutex);
|
|
- if (test_bit(XPT_DEAD, &xprt->xpt_flags))
|
|
|
|
|
|
+ if (test_bit(XPT_DEAD, &xprt->xpt_flags)
|
|
|
|
+ || test_bit(XPT_CLOSE, &xprt->xpt_flags))
|
|
len = -ENOTCONN;
|
|
len = -ENOTCONN;
|
|
else
|
|
else
|
|
len = xprt->xpt_ops->xpo_sendto(rqstp);
|
|
len = xprt->xpt_ops->xpo_sendto(rqstp);
|