Whamcloud - gitweb
branch: HEAD
authorericm <ericm>
Wed, 18 Jun 2008 19:07:38 +0000 (19:07 +0000)
committerericm <ericm>
Wed, 18 Jun 2008 19:07:38 +0000 (19:07 +0000)
fix sanity check in mdt_req_handle.
b=16076
r=wangdi
r=umka

lustre/mdt/mdt_handler.c

index 82225d8..3182205 100644 (file)
@@ -2097,9 +2097,11 @@ static int mdt_req_handle(struct mdt_thread_info *info,
                  * only
                  */
                 rc = h->mh_act(info);
-                if (rc == 0 && req->rq_reply_state == NULL) {
-                        DEBUG_REQ(D_ERROR, req, "MDT \"handler\" %s did not pack "
-                                  "reply and returned 0 error\n", h->mh_name);
+                if (rc == 0 &&
+                    !req->rq_no_reply && req->rq_reply_state == NULL) {
+                        DEBUG_REQ(D_ERROR, req, "MDT \"handler\" %s did not "
+                                  "pack reply and returned 0 error\n",
+                                  h->mh_name);
                         LBUG();
                 }
                 serious = is_serious(rc);