Whamcloud - gitweb
Branch b1_6
authortianzy <tianzy>
Mon, 17 Nov 2008 06:19:11 +0000 (06:19 +0000)
committertianzy <tianzy>
Mon, 17 Nov 2008 06:19:11 +0000 (06:19 +0000)
fix the error handling on quota slaves
i=johann
i=panda

lustre/quota/quota_context.c

index de7a94a..18ae062 100644 (file)
@@ -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,