SUNRPC: Add a tracepoint for server socket out-of-space conditions
[deliverable/linux.git] / net / sunrpc / svc_xprt.c
index 4f01f63102ee5d1ce936f54fa8feb3cedfc15607..4d2189a562af00f5eb47ad794bfe4596c73e472e 100644 (file)
@@ -333,8 +333,12 @@ static bool svc_xprt_has_something_to_do(struct svc_xprt *xprt)
 {
        if (xprt->xpt_flags & ((1<<XPT_CONN)|(1<<XPT_CLOSE)))
                return true;
-       if (xprt->xpt_flags & ((1<<XPT_DATA)|(1<<XPT_DEFERRED)))
-               return xprt->xpt_ops->xpo_has_wspace(xprt);
+       if (xprt->xpt_flags & ((1<<XPT_DATA)|(1<<XPT_DEFERRED))) {
+               if (xprt->xpt_ops->xpo_has_wspace(xprt))
+                       return true;
+               trace_svc_xprt_no_write_space(xprt);
+               return false;
+       }
        return false;
 }
 
This page took 0.032725 seconds and 5 git commands to generate.