Skip to content
Snippets Groups Projects
Commit 92008de5 authored by tianzy's avatar tianzy
Browse files

Branch b1_6

fix the error handling on quota slaves
i=johann
i=panda
parent 7eb2c153
No related branches found
No related tags found
No related merge requests found
...@@ -728,10 +728,6 @@ struct dqacq_async_args { ...@@ -728,10 +728,6 @@ struct dqacq_async_args {
struct lustre_qunit *aa_qunit; struct lustre_qunit *aa_qunit;
}; };
#define QUOTA_NOSENT(rc) \
(rc == -EIO || rc == -EINTR || rc == -ENOTCONN || \
rc == -ETIMEDOUT || rc == -EWOULDBLOCK)
static int dqacq_interpret(struct ptlrpc_request *req, void *data, int rc) static int dqacq_interpret(struct ptlrpc_request *req, void *data, int rc)
{ {
struct dqacq_async_args *aa = (struct dqacq_async_args *)data; struct dqacq_async_args *aa = (struct dqacq_async_args *)data;
...@@ -756,7 +752,7 @@ static int dqacq_interpret(struct ptlrpc_request *req, void *data, int rc) ...@@ -756,7 +752,7 @@ static int dqacq_interpret(struct ptlrpc_request *req, void *data, int rc)
* this situation we should get qdata from request instead of * this situation we should get qdata from request instead of
* reply */ * reply */
rc1 = quota_get_qdata(req, qdata, rc1 = quota_get_qdata(req, qdata,
QUOTA_NOSENT(rc) ? QUOTA_REQUEST : QUOTA_REPLY, (rc != 0) ? QUOTA_REQUEST : QUOTA_REPLY,
QUOTA_IMPORT); QUOTA_IMPORT);
if (rc1 < 0) { if (rc1 < 0) {
DEBUG_REQ(D_ERROR, req, DEBUG_REQ(D_ERROR, req,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment