summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-07-11 23:14:11 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-07-12 03:10:55 +0300
commitf0f3e5114871330faf3248e92ceaa4f18602e941 (patch)
treed92919707458a8106fe00cd184c3037573621f4c /fs
parentaacd897d4d75adaae3becc2b00d8cdc9a56928d1 (diff)
downloadlinux-f0f3e5114871330faf3248e92ceaa4f18602e941.tar.xz
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 <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r--fs/bcachefs/io_misc.c2
1 files changed, 1 insertions, 1 deletions
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);
}