From 9387c13dd85d16a3848c35c731c6a447ae67dbae Mon Sep 17 00:00:00 2001 From: ericm Date: Thu, 9 Apr 2009 20:43:11 +0000 Subject: [PATCH] branch: HEAD add an assertion trying to catch the rarely happened case of possible import reference over dropping. b=18849 --- lustre/obdclass/genops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index b0ba327..cb3c85d 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -1383,6 +1383,7 @@ static void obd_zombie_export_add(struct obd_export *exp) { * Add import to the obd_zombe thread and notify it. */ static void obd_zombie_import_add(struct obd_import *imp) { + LASSERT(imp->imp_sec == NULL); spin_lock(&obd_zombie_impexp_lock); LASSERT(list_empty(&imp->imp_zombie_chain)); list_add(&imp->imp_zombie_chain, &obd_zombie_imports); -- 1.8.3.1