Whamcloud - gitweb
b=23994 hide EMFILE error in ptlrpc_start_threads().
authorEric Mei <eric.mei@oracle.com>
Mon, 22 Nov 2010 15:47:59 +0000 (08:47 -0700)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Tue, 23 Nov 2010 21:29:18 +0000 (00:29 +0300)
i=vitaly.fertman

lustre/ptlrpc/service.c

index 299398d..79e0e37 100644 (file)
@@ -2462,8 +2462,10 @@ int ptlrpc_start_threads(struct ptlrpc_service *svc)
         for (i = 0; i < svc->srv_threads_min; i++) {
                 rc = ptlrpc_start_thread(svc);
                 /* We have enough threads, don't start more.  b=15759 */
-                if (rc == -EMFILE)
+                if (rc == -EMFILE) {
+                        rc = 0;
                         break;
+                }
                 if (rc) {
                         CERROR("cannot start %s thread #%d: rc %d\n",
                                svc->srv_thread_name, i, rc);