Whamcloud - gitweb
If you force cleanup the OSC/LOV before you unmount, umount will
authorphil <phil>
Tue, 12 Aug 2003 22:49:08 +0000 (22:49 +0000)
committerphil <phil>
Tue, 12 Aug 2003 22:49:08 +0000 (22:49 +0000)
crash.  Fix by checking for NULL after conn2obd.

lustre/llite/llite_lib.c

index 932a88a..6c33bb9 100644 (file)
@@ -889,6 +889,13 @@ void ll_umount_begin(struct super_block *sb)
                       &ioc_data, NULL);
 
         obd = class_conn2obd(&sbi->ll_osc_conn);
+        if (obd == NULL) {
+                CERROR("Invalid LOV connection handle "LPX64"\n",
+                       sbi->ll_osc_conn.cookie);
+                EXIT;
+                return;
+        }
+
         obd->obd_no_recov = 1;
         obd_iocontrol(IOC_OSC_SET_ACTIVE, &sbi->ll_osc_conn, sizeof ioc_data,
                       &ioc_data, NULL);