From: nathan Date: Fri, 12 May 2006 21:33:31 +0000 (+0000) Subject: Branch b1_5 X-Git-Tag: v1_7_100~1^90~8^2~245 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=aec06e94de2df604577a75f742776583c1ff06a0;p=fs%2Flustre-release.git Branch b1_5 b=9860 fix ctrl-c during client mount waiting for recovery (added regression in 9860) --- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index ebc456b..ab45d10 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -936,21 +936,24 @@ void ll_put_super(struct super_block *sb) cfg.cfg_instance = ll_instance; lustre_end_log(sb, NULL, &cfg); - obd = class_exp2obd(sbi->ll_mdc_exp); - if (obd) { - int force = obd->obd_no_recov; - /* We need to set force before the lov_disconnect in - lustre_common_put_super, since l_d cleans up osc's as well. */ - next = 0; - while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, &next)) - != NULL) { - obd->obd_force = force; - } - } - - if (sbi->ll_lcq) - /* Only call if client_common_fill_super succeeded */ + if (sbi->ll_lcq) { + /* Only if client_common_fill_super succeeded */ + + obd = class_exp2obd(sbi->ll_mdc_exp); + if (obd) { + int force = obd->obd_no_recov; + /* We need to set force before the lov_disconnect in + lustre_common_put_super, since l_d cleans up osc's + as well. */ + next = 0; + while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, + &next)) != NULL) { + obd->obd_force = force; + } + } + client_common_put_super(sb); + } next = 0; while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, &next)) !=NULL) {