diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-11 23:14:11 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-12 03:10:55 +0300 |
commit | f0f3e5114871330faf3248e92ceaa4f18602e941 (patch) | |
tree | d92919707458a8106fe00cd184c3037573621f4c /fs | |
parent | aacd897d4d75adaae3becc2b00d8cdc9a56928d1 (diff) | |
download | linux-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.c | 2 |
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); } |