Commit f0f3e511 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ int bch2_extent_fallocate(struct btree_trans *trans,
	bch2_bkey_buf_exit(&old, c);

	if (closure_nr_remaining(&cl) != 1) {
		bch2_trans_unlock(trans);
		bch2_trans_unlock_long(trans);
		closure_sync(&cl);
	}