From: Dmitry Zogin Date: Mon, 17 May 2010 14:50:35 +0000 (-0400) Subject: b=21563 Metadata performance has degraded for some operations between 1.6.5 and 1.8.1 X-Git-Tag: v1_8_3_51~37 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b3adc59f32daf882676429ef1bbd9502975fe642;p=fs%2Flustre-release.git b=21563 Metadata performance has degraded for some operations between 1.6.5 and 1.8.1 Move CDEBUG statement out of the loop in llog_origin_handle_cancel(). i=andrew.perepechko i=andreas.dilger --- diff --git a/lustre/ptlrpc/llog_server.c b/lustre/ptlrpc/llog_server.c index 9888c26..08b929d 100644 --- a/lustre/ptlrpc/llog_server.c +++ b/lustre/ptlrpc/llog_server.c @@ -439,21 +439,16 @@ int llog_origin_handle_cancel(struct ptlrpc_request *req) rc = llog_cat_cancel_records(cathandle, 1, logcookies); + err = fsfilt_commit(disk_obd, inode, handle, 0); + /* Do not raise -ENOENT errors for resent rpcs. This rec already * might be killed. */ if (rc == -ENOENT && (lustre_msg_get_flags(req->rq_reqmsg) & MSG_RESENT)) { - /* Do not change this message, reply-single.sh test_59b - * expects to find this in dmesg. */ - CDEBUG(D_RPCTRACE, "RESENT cancel req %p - ignored\n", - req); + CDEBUG(D_INFO, "RESENT cancel req %p - ignored\n", req); rc = 0; - } else if (rc == 0) { - CDEBUG(D_RPCTRACE, "Canceled %d llog-records\n", - num_cookies); } - err = fsfilt_commit(disk_obd, inode, handle, 0); if (err) { CERROR("Error committing transaction: %d\n", err); if (!rc) @@ -469,6 +464,9 @@ pop_ctxt: if (rc) CERROR("Cancel %d of %d llog-records failed: %d\n", failed, num_cookies, rc); + else + CDEBUG(D_RPCTRACE, "Canceled %d llog-records\n", + num_cookies); llog_ctxt_put(ctxt); return rc;