Whamcloud - gitweb
b=24230 always allow to handle normal request for liblustre
authorVitaly Fertman <vitaly.fertman@oracle.com>
Fri, 10 Dec 2010 12:53:44 +0000 (15:53 +0300)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Fri, 10 Dec 2010 23:56:28 +0000 (02:56 +0300)
o=liang
i=vitaly
i=zam

as liblustre is 1-threaded we should not prevert normal requests
from being processed if only 1 thread is left

lustre/ptlrpc/service.c

index b13b82b..2768325 100644 (file)
@@ -1390,6 +1390,10 @@ static int ptlrpc_server_high_pending(struct ptlrpc_service *svc, int force)
  */
 static int ptlrpc_server_allow_normal(struct ptlrpc_service *svc, int force)
 {
+#ifndef __KERNEL__
+        if (1) /* always allow to handle normal request for liblustre */
+                return 1;
+#endif
         if (force ||
             svc->srv_n_active_reqs < svc->srv_threads_running - 2)
                 return 1;