Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-2844 mdd: mdt prepare failure should not oops
[fs/lustre-release.git]
/
lustre
/
mdd
/
mdd_lfsck.c
diff --git
a/lustre/mdd/mdd_lfsck.c
b/lustre/mdd/mdd_lfsck.c
index
c31f3ad
..
152a2d4
100644
(file)
--- a/
lustre/mdd/mdd_lfsck.c
+++ b/
lustre/mdd/mdd_lfsck.c
@@
-2893,6
+2893,9
@@
int mdd_lfsck_stop(const struct lu_env *env, struct md_lfsck *lfsck,
struct l_wait_info lwi = { 0 };
ENTRY;
+ if (!lfsck->ml_initialized)
+ RETURN(0);
+
mutex_lock(&lfsck->ml_mutex);
spin_lock(&lfsck->ml_lock);
if (thread_is_init(thread) || thread_is_stopped(thread)) {