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:
b402809
)
Branch b1_6
author
anserper
<anserper>
Thu, 20 Mar 2008 22:00:24 +0000
(22:00 +0000)
committer
anserper
<anserper>
Thu, 20 Mar 2008 22:00:24 +0000
(22:00 +0000)
b=14896
i=oleg.drokin
i=tianzy
additional handling of quota cleanup in case when no init was done
lustre/quota/quota_interface.c
patch
|
blob
|
history
diff --git
a/lustre/quota/quota_interface.c
b/lustre/quota/quota_interface.c
index
ada2ce6
..
519e8d2
100644
(file)
--- a/
lustre/quota/quota_interface.c
+++ b/
lustre/quota/quota_interface.c
@@
-265,6
+265,10
@@
static int filter_quota_clearinfo(struct obd_export *exp, struct obd_device *obd
{
struct lustre_quota_ctxt *qctxt = &obd->u.obt.obt_qctxt;
+ /* lquota may be not set up before destroying export, b=14896 */
+ if (!obd->obd_set_up)
+ return 0;
+
/* when exp->exp_imp_reverse is destroyed, the corresponding lqc_import
* should be invalid b=12374 */
if (qctxt->lqc_import == exp->exp_imp_reverse) {