X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fquota%2Fquota_ctl.c;h=7c9a66a50e767932e311608ec5228aebe2efcd1d;hp=91fee1db6d7fccf069e87531acf374c091e1d434;hb=2f347eb0da65973bfc4acbd49ad48698bf71441f;hpb=7326143163cc95b91fb741bc82c60d7145064cb4 diff --git a/lustre/quota/quota_ctl.c b/lustre/quota/quota_ctl.c index 91fee1d..7c9a66a 100644 --- a/lustre/quota/quota_ctl.c +++ b/lustre/quota/quota_ctl.c @@ -294,7 +294,7 @@ int client_quota_ctl(struct obd_device *unused, struct obd_export *exp, struct ptlrpc_request *req; struct obd_quotactl *oqc; const struct req_format *rf; - int ver, opc, rc, resends = 0; + int ver, opc, rc; ENTRY; if (!strcmp(exp->exp_obd->obd_type->typ_name, LUSTRE_MDC_NAME)) { @@ -309,8 +309,6 @@ int client_quota_ctl(struct obd_device *unused, struct obd_export *exp, RETURN(-EINVAL); } -restart_request: - req = ptlrpc_request_alloc_pack(class_exp2cliimp(exp), rf, ver, opc); if (req == NULL) RETURN(-ENOMEM); @@ -342,16 +340,6 @@ restart_request: out: ptlrpc_req_finished(req); - if (client_quota_recoverable_error(rc)) { - resends++; - if (!client_quota_should_resend(resends, &exp->exp_obd->u.cli)) { - CERROR("too many resend retries, returning error\n"); - RETURN(-EIO); - } - - goto restart_request; - } - return rc; }