From: Kent Overstreet Date: Thu, 11 Jul 2024 20:14:11 +0000 (-0400) Subject: bcachefs; Use trans_unlock_long() when waiting on allocator X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f0f3e5114871330faf3248e92ceaa4f18602e941;p=users%2Fjedix%2Flinux-maple.git bcachefs; Use trans_unlock_long() when waiting on allocator not using unlock_long() blocks key cache reclaim, and the allocator may take awhile Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/io_misc.c b/fs/bcachefs/io_misc.c index 4ec979b4b23e..4583c9386e8c 100644 --- a/fs/bcachefs/io_misc.c +++ b/fs/bcachefs/io_misc.c @@ -125,7 +125,7 @@ err_noprint: bch2_bkey_buf_exit(&old, c); if (closure_nr_remaining(&cl) != 1) { - bch2_trans_unlock(trans); + bch2_trans_unlock_long(trans); closure_sync(&cl); }