From: adilger Date: Wed, 4 Sep 2002 00:16:44 +0000 (+0000) Subject: Fix thinko in export cleanup. X-Git-Tag: 0.5.6~10 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e158de52a8db33598ee579c39153723511f5844c;p=fs%2Flustre-release.git Fix thinko in export cleanup. --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 6d366b9..2be7f9b 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -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;