From e158de52a8db33598ee579c39153723511f5844c Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 4 Sep 2002 00:16:44 +0000 Subject: [PATCH] Fix thinko in export cleanup. --- lustre/obdclass/genops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.8.3.1