In the debugfs code, we had an incorrect use of drop_locks_do(); on
transaction restart we don't want to restart the current loop iteration,
since we've already emitted the current key to the buffer for userspace.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
BTREE_ITER_ALL_SNAPSHOTS, k, ({
bch2_bkey_val_to_text(&i->buf, i->c, k);
prt_newline(&i->buf);
- drop_locks_do(trans, flush_buf(i));
+ bch2_trans_unlock(trans);
+ flush_buf(i);
}));
i->from = iter.pos;
}
bch2_bfloat_to_text(&i->buf, l->b, _k);
- drop_locks_do(trans, flush_buf(i));
+ bch2_trans_unlock(trans);
+ flush_buf(i);
}));
i->from = iter.pos;