From: phil Date: Tue, 12 Aug 2003 22:49:08 +0000 (+0000) Subject: If you force cleanup the OSC/LOV before you unmount, umount will X-Git-Tag: v1_7_110~1^13~147 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7f3b0487f15b2dc70426fbcc05ab85fd4a9605fb;p=fs%2Flustre-release.git If you force cleanup the OSC/LOV before you unmount, umount will crash. Fix by checking for NULL after conn2obd. --- diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index 932a88a..6c33bb9 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -889,6 +889,13 @@ void ll_umount_begin(struct super_block *sb) &ioc_data, NULL); obd = class_conn2obd(&sbi->ll_osc_conn); + if (obd == NULL) { + CERROR("Invalid LOV connection handle "LPX64"\n", + sbi->ll_osc_conn.cookie); + EXIT; + return; + } + obd->obd_no_recov = 1; obd_iocontrol(IOC_OSC_SET_ACTIVE, &sbi->ll_osc_conn, sizeof ioc_data, &ioc_data, NULL);