struct dt_object *obj = tti->tti_u.update.tti_dt_object;
int idx = tti->tti_u.update.tti_update_reply_index;
int rc;
+ int level = D_INFO;
ENTRY;
if (unlikely(update->ou_result_size < sizeof(*obdo)))
return -EPROTO;
+ if (fid_is_update_log_dir(lu_object_fid(&obj->do_lu)))
+ level = D_WARNING;
+
if (!lu_object_exists(&obj->do_lu)) {
/* Usually, this will be called when the master MDT try
* to init a remote object(see osp_object_init), so if
* so the object can be removed from the cache immediately */
set_bit(LU_OBJECT_HEARD_BANSHEE,
&obj->do_lu.lo_header->loh_flags);
+ CDEBUG_LIMIT(level, "%s: update_log_dir is missing?\n",
+ tgt_name(tsi->tsi_tgt));
RETURN(-ENOENT);
}
out_unlock:
dt_read_unlock(env, obj);
- CDEBUG(D_INFO, "%s: insert attr get reply %p index %d: rc = %d\n",
- tgt_name(tsi->tsi_tgt), tti->tti_u.update.tti_update_reply,
- 0, rc);
+ CDEBUG_LIMIT(level, "%s: insert attr get reply %p index %d: rc = %d\n",
+ tgt_name(tsi->tsi_tgt), tti->tti_u.update.tti_update_reply,
+ 0, rc);
object_update_result_insert(tti->tti_u.update.tti_update_reply, obdo,
sizeof(*obdo), idx, rc);
dt_obj = dt_locate_at(env, dt, &update->ou_fid,
dt->dd_lu_dev.ld_site->ls_top_dev, &conf);
if (IS_ERR(dt_obj)) {
+ int level = D_HA;
+
rc = PTR_ERR(dt_obj);
- CDEBUG(D_HA,
- "%s: opc: 0x%x locate error fid"\
- DFID": rc = %d\n",
- tgt_name(tsi->tsi_tgt),
- update->ou_type,
+ if (fid_is_update_log_dir(&update->ou_fid))
+ level = D_WARNING;
+ CDEBUG_LIMIT(level,
+ "%s: opc: 0x%x locate error fid "DFID": rc = %d\n",
+ tgt_name(tsi->tsi_tgt), update->ou_type,
PFID(&update->ou_fid), rc);
GOTO(out, rc);
}
struct top_multiple_thandle *tmt)
{
struct sub_thandle *st;
- unsigned int debug = 0;
- bool debug_done = false;
-
ENTRY;
if (OBD_FAIL_CHECK(OBD_FAIL_TGT_TXN_NO_CANCEL))
cookie = &stc->stc_cookie;
if (fid_is_zero(&cookie->lgc_lgl.lgl_oi.oi_fid))
continue;
-do_debug_run:
+
rc = llog_cat_cancel_records(env, ctxt->loc_handle, 1,
cookie);
CDEBUG(D_HA, "%s: batchid %llu cancel update log "
DFID".%u: rc = %d\n", obd->obd_name,
tmt->tmt_batchid, PLOGID(&cookie->lgc_lgl),
cookie->lgc_index, rc);
- if (unlikely(rc == -ENOTDIR && !debug_done)) {
- if (!debug) {
- debug = libcfs_debug;
- libcfs_debug |= D_TRACE | D_INFO |
- D_OTHER | D_INODE |
- D_RPCTRACE;
- goto do_debug_run;
- } else {
- libcfs_debug = debug;
- libcfs_debug_dumplog();
- debug_done = true;
- }
- }
}
- if (unlikely(debug && !debug_done))
- libcfs_debug = debug;
+
llog_ctxt_put(ctxt);
}