Whamcloud - gitweb
b=21137 Sles11 with 1.8 is slower than 1.6 sles10 for O_DIRECT single file IOR writes
authorDmitry Zogin <dmitry.zoguine@oracle.com>
Thu, 24 Mar 2011 10:49:37 +0000 (13:49 +0300)
committerTerry Rutledge <terry.rutledge@oracle.com>
Tue, 29 Mar 2011 16:28:51 +0000 (09:28 -0700)
Fix ptlrpc_main() condition to start service threads correctly.

i=adilger
i=vitaly.fertman

lustre/ptlrpc/service.c

index 0bd922f..50256bc 100644 (file)
@@ -1749,7 +1749,7 @@ static int ptlrpc_main(void *arg)
                 ptlrpc_check_rqbd_pool(svc);
 
                 if ((svc->srv_threads_started < svc->srv_threads_max) &&
-                    (svc->srv_n_active_reqs >= (svc->srv_threads_started - 1))){
+                    (svc->srv_n_active_reqs >= (svc->srv_threads_started - 2))){
                         /* Ignore return code - we tried... */
                         ptlrpc_start_thread(dev, svc);
                 }