From: Lai Siyao Date: Wed, 3 Oct 2012 05:14:12 +0000 (+0800) Subject: LU-1749 llog: MDT should work if cancel llog failed with -ESTALE X-Git-Tag: 2.3.0-RC4~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e5d5cd20169b476cdb4fe4857d64aef4bf03d497;p=fs%2Flustre-release.git LU-1749 llog: MDT should work if cancel llog failed with -ESTALE Cancel catlog may be stale, in this case MDT should continue to work. Signed-off-by: Lai Siyao Change-Id: I1934be855f9a1ad8d45750bd7e8330e81a888545 Reviewed-on: http://review.whamcloud.com/4163 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: wangdi Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/llog_obd.c b/lustre/obdclass/llog_obd.c index 946bdec..1738176 100644 --- a/lustre/obdclass/llog_obd.c +++ b/lustre/obdclass/llog_obd.c @@ -310,9 +310,9 @@ static int cat_cancel_cb(struct llog_handle *cathandle, rc = llog_cat_id2handle(cathandle, &loghandle, &lir->lid_id); if (rc) { - CERROR("Cannot find handle for log "LPX64"\n", - lir->lid_id.lgl_oid); - if (rc == -ENOENT) { + CERROR("Cannot find handle for log "LPX64": %d\n", + lir->lid_id.lgl_oid, rc); + if (rc == -ENOENT || rc == -ESTALE) { index = rec->lrh_index; goto cat_cleanup; }