Commit 9d7f2a41 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: bch2_btree_trans_to_text(): print blocked time

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 2cc9c0db
......@@ -3076,7 +3076,9 @@ void bch2_btree_trans_to_text(struct printbuf *out, struct btree_trans *trans)
b = READ_ONCE(trans->locking);
if (b) {
prt_str(out, " want");
prt_printf(out, " blocked for %lluus on",
div_u64(local_clock() - trans->locking_wait.start_time,
1000));
prt_newline(out);
prt_printf(out, " %c", lock_types[trans->locking_wait.lock_want]);
bch2_btree_bkey_cached_common_to_text(out, b);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment