Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42da39a
)
If you force cleanup the OSC/LOV before you unmount, umount will
author
phil
<phil>
Tue, 12 Aug 2003 22:49:08 +0000
(22:49 +0000)
committer
phil
<phil>
Tue, 12 Aug 2003 22:49:08 +0000
(22:49 +0000)
crash. Fix by checking for NULL after conn2obd.
lustre/llite/llite_lib.c
patch
|
blob
|
history
diff --git
a/lustre/llite/llite_lib.c
b/lustre/llite/llite_lib.c
index
932a88a
..
6c33bb9
100644
(file)
--- 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);