Whamcloud - gitweb
Fix thinko in export cleanup.
authoradilger <adilger>
Wed, 4 Sep 2002 00:16:44 +0000 (00:16 +0000)
committeradilger <adilger>
Wed, 4 Sep 2002 00:16:44 +0000 (00:16 +0000)
lustre/obdclass/genops.c

index 6d366b9..2be7f9b 100644 (file)
@@ -382,7 +382,6 @@ int class_disconnect(struct lustre_handle *conn)
 
 void class_disconnect_all(struct obd_device *obddev)
 {
-        struct list_head *tmp;
         int again = 1;
 
         while (again) {
@@ -392,7 +391,8 @@ void class_disconnect_all(struct obd_device *obddev)
                         struct lustre_handle conn;
                         int rc;
 
-                        export = list_entry(tmp, struct obd_export, 
+                        export = list_entry(obddev->obd_exports.next,
+                                            struct obd_export,
                                             exp_obd_chain);
                         conn.addr = (__u64)(unsigned long)export;
                         conn.cookie = export->exp_cookie;