Whamcloud - gitweb
b=17505
authorzhanghc <zhanghc>
Thu, 6 Nov 2008 02:24:44 +0000 (02:24 +0000)
committerzhanghc <zhanghc>
Thu, 6 Nov 2008 02:24:44 +0000 (02:24 +0000)
removing mfd from 'closing_list' to fix ASSERTION(list_empty(&mfd->mfd_list))
in mdt_mfd_free in mdt_open.c

i=robert.read

lustre/mdt/mdt_handler.c

index 833de46..3640dc9 100644 (file)
@@ -4588,6 +4588,7 @@ static int mdt_destroy_export(struct obd_export *export)
         spin_unlock(&med->med_open_lock);
 
         list_for_each_entry_safe(mfd, n, &closing_list, mfd_list) {
+                list_del_init(&mfd->mfd_list);
                 mdt_mfd_close(info, mfd);
                 /* TODO: if we close the unlinked file,
                  * we need to remove it's objects from OST */