Commit f0f3e511 authored by Kent Overstreet's avatar Kent Overstreet

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent aacd897d
...@@ -125,7 +125,7 @@ int bch2_extent_fallocate(struct btree_trans *trans, ...@@ -125,7 +125,7 @@ int bch2_extent_fallocate(struct btree_trans *trans,
bch2_bkey_buf_exit(&old, c); bch2_bkey_buf_exit(&old, c);
if (closure_nr_remaining(&cl) != 1) { if (closure_nr_remaining(&cl) != 1) {
bch2_trans_unlock(trans); bch2_trans_unlock_long(trans);
closure_sync(&cl); closure_sync(&cl);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment