1

bcachefs: Fix GFP_KERNEL allocation in break_cycle()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2024-06-02 22:52:24 -04:00
parent c3f38fa61a
commit 9a64e1bfd8

View File

@ -215,6 +215,7 @@ static noinline int break_cycle(struct lock_graph *g, struct printbuf *cycle)
if (unlikely(!best)) { if (unlikely(!best)) {
struct printbuf buf = PRINTBUF; struct printbuf buf = PRINTBUF;
buf.atomic++;
prt_printf(&buf, bch2_fmt(g->g->trans->c, "cycle of nofail locks")); prt_printf(&buf, bch2_fmt(g->g->trans->c, "cycle of nofail locks"));