Whamcloud - gitweb
* 1st attempt to prevent duplicate devices being started.
[fs/lustre-release.git] / lustre / obdclass / proc_lustre.c
index 979467c..d4dc835 100644 (file)
@@ -19,6 +19,7 @@
  *   You should have received a copy of the GNU General Public License
  *   along with Lustre; if not, write to the Free Software
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
 
 /* OBD devices materialize in /proc as a directory:
  *              /proc/lustre/obd/<number>
@@ -93,7 +94,8 @@ static int read_lustre_status(char *page, char **start, off_t offset,
                 while ((lh = lh->next) != &obddev->obd_exports) {
                         p += sprintf(&page[p],
                                   ((export == NULL) ? ", connections(" : ",") );
-                        export = list_entry(lh, struct obd_export, exp_chain);
+                        export = list_entry(lh, struct obd_export, 
+                                            exp_obd_chain);
                         p += sprintf(&page[p], "%p", export);
                 }
                 if (export != 0) { /* there was at least one export */
@@ -169,6 +171,7 @@ void proc_lustre_remove_obd_entry(const char *name, struct obd_device *obd)
 
                 remove_proc_entry(obd_entry->name, obd_dir);
         }
+        obd->obd_proc_entry = NULL;
 }
 
 void proc_lustre_release_obd_device(struct obd_device *obd)