Whamcloud - gitweb
b=17310
authoryury <yury>
Wed, 21 Jan 2009 16:48:03 +0000 (16:48 +0000)
committeryury <yury>
Wed, 21 Jan 2009 16:48:03 +0000 (16:48 +0000)
r=johann

- tmp fix for long connect rpc interpreyt which causes the assert

lustre/ptlrpc/import.c

index f024932..5134689 100644 (file)
@@ -311,6 +311,16 @@ void ptlrpc_invalidate_import(struct obd_import *imp)
                         }
                         
                         if (atomic_read(&imp->imp_unregistering) == 0) {
+                                /* XXX: This is temporary workaround for long 
+                                 * connect interpret due to locking in lov in 
+                                 * in import activation path, which causes
+                                 * connect rpc stay on sending list longer
+                                 * time. Let's wait longer insread of asserting
+                                 * here.
+                                 *
+                                 * Activation should not be blocking. Kill
+                                 * this #if 0 when activation code is fixed. */
+#if 0
                                 /* We know that only "unregistering" rpcs may
                                  * still survive in sending or delaying lists
                                  * (They are waiting for long reply unlink in
@@ -323,6 +333,7 @@ void ptlrpc_invalidate_import(struct obd_import *imp)
                                  * dropped to zero. No new inflights possible at
                                  * this point. */
                                 rc = 0;
+#endif
                         } else {
                                 CERROR("%s: RPCs in \"%s\" phase found (%d). "
                                        "Network is sluggish? Waiting them "