From e7ddc02babf05dc7879d765664ea339153acb7bd Mon Sep 17 00:00:00 2001 From: ericm Date: Wed, 18 Jun 2008 19:07:38 +0000 Subject: [PATCH 1/1] branch: HEAD fix sanity check in mdt_req_handle. b=16076 r=wangdi r=umka --- lustre/mdt/mdt_handler.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 82225d8..3182205 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -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); -- 1.8.3.1