diff options
| -rw-r--r-- | net/sunrpc/svc_xprt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 88f2bf671960..0d693a89434f 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c | |||
| @@ -794,7 +794,8 @@ int svc_send(struct svc_rqst *rqstp) | |||
| 794 | 794 | ||
| 795 | /* Grab mutex to serialize outgoing data. */ | 795 | /* Grab mutex to serialize outgoing data. */ |
| 796 | mutex_lock(&xprt->xpt_mutex); | 796 | mutex_lock(&xprt->xpt_mutex); |
| 797 | if (test_bit(XPT_DEAD, &xprt->xpt_flags)) | 797 | if (test_bit(XPT_DEAD, &xprt->xpt_flags) |
| 798 | || test_bit(XPT_CLOSE, &xprt->xpt_flags)) | ||
| 798 | len = -ENOTCONN; | 799 | len = -ENOTCONN; |
| 799 | else | 800 | else |
| 800 | len = xprt->xpt_ops->xpo_sendto(rqstp); | 801 | len = xprt->xpt_ops->xpo_sendto(rqstp); |
