X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fquota%2Fquota_interface.c;h=2ef1b67b9a129cae0c59d0264e202ee6320aa55c;hb=777cefdfd2bb28d5eda3723077a03ef2aeadedff;hp=f257cd57a4a7f8645d2236a2089409e2517dd451;hpb=c159c408293fbebf71a948e630aa9f637f3c8ffe;p=fs%2Flustre-release.git diff --git a/lustre/quota/quota_interface.c b/lustre/quota/quota_interface.c index f257cd5..2ef1b67 100644 --- a/lustre/quota/quota_interface.c +++ b/lustre/quota/quota_interface.c @@ -45,14 +45,10 @@ # include # include # include -# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)) -# include -# include -# include -# include -# else -# include -# endif +# include +# include +# include +# include #else /* __KERNEL__ */ # include #endif @@ -141,6 +137,7 @@ static int filter_quota_clearinfo(struct obd_export *exp, struct obd_device *obd spin_lock(&qctxt->lqc_lock); qctxt->lqc_import = NULL; spin_unlock(&qctxt->lqc_lock); + dqacq_interrupt(qctxt); CDEBUG(D_QUOTA, "%s: lqc_import of obd(%p) is invalid now.\n", obd->obd_name, obd); } @@ -384,7 +381,7 @@ static int quota_chk_acq_common(struct obd_device *obd, unsigned int uid, /* please reference to dqacq_completion for the below */ /* a new request is finished, try again */ - if (rc == -EAGAIN) { + if (rc == QUOTA_REQ_RETURNED) { CDEBUG(D_QUOTA, "finish a quota req, try again\n"); continue; }