Skip to content

Commit f0f3e51

Browse files
author
Kent Overstreet
committed
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 <[email protected]>
1 parent aacd897 commit f0f3e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/io_misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int bch2_extent_fallocate(struct btree_trans *trans,
125125
bch2_bkey_buf_exit(&old, c);
126126

127127
if (closure_nr_remaining(&cl) != 1) {
128-
bch2_trans_unlock(trans);
128+
bch2_trans_unlock_long(trans);
129129
closure_sync(&cl);
130130
}
131131

0 commit comments

Comments
 (0)