From 92008de53e3d147a01b43c5528758be1b06b813b Mon Sep 17 00:00:00 2001
From: tianzy <tianzy>
Date: Mon, 17 Nov 2008 06:19:11 +0000
Subject: [PATCH] Branch b1_6 fix the error handling on quota slaves i=johann
 i=panda

---
 lustre/quota/quota_context.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lustre/quota/quota_context.c b/lustre/quota/quota_context.c
index de7a94a84b..18ae0627de 100644
--- a/lustre/quota/quota_context.c
+++ b/lustre/quota/quota_context.c
@@ -728,10 +728,6 @@ struct dqacq_async_args {
         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)
 {
         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)
          * this situation we should get qdata from request instead of
          * reply */
         rc1 = quota_get_qdata(req, qdata,
-                              QUOTA_NOSENT(rc) ? QUOTA_REQUEST : QUOTA_REPLY,
+                              (rc != 0) ? QUOTA_REQUEST : QUOTA_REPLY,
                               QUOTA_IMPORT);
         if (rc1 < 0) {
                 DEBUG_REQ(D_ERROR, req,
-- 
GitLab