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:
282e333
)
add lock on son while doing error handling
author
huanghua
<huanghua>
Wed, 18 Oct 2006 06:18:06 +0000
(06:18 +0000)
committer
huanghua
<huanghua>
Wed, 18 Oct 2006 06:18:06 +0000
(06:18 +0000)
lustre/mdd/mdd_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_handler.c
b/lustre/mdd/mdd_handler.c
index
0f1b941
..
81f39e8
100644
(file)
--- a/
lustre/mdd/mdd_handler.c
+++ b/
lustre/mdd/mdd_handler.c
@@
-2606,8
+2606,11
@@
cleanup:
CERROR("error can not cleanup destroy %d\n",
rc2);
}
- if (rc2 == 0)
+ if (rc2 == 0) {
+ mdd_write_lock(env, son);
__mdd_ref_del(env, son, handle);
+ mdd_write_unlock(env, son);
+ }
}
/* finish mdd_lov_create() stuff */
mdd_lov_create_finish(env, mdd, rc);