mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
bcachefs: bch2_btree_trans_to_text(): print blocked time
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
2cc9c0db89
commit
9d7f2a4111
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user