From 7f3b0487f15b2dc70426fbcc05ab85fd4a9605fb Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 12 Aug 2003 22:49:08 +0000 Subject: [PATCH] If you force cleanup the OSC/LOV before you unmount, umount will crash. Fix by checking for NULL after conn2obd. --- lustre/llite/llite_lib.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 1.8.3.1