Skip to content

Commit 3079294

Browse files
author
Kent Overstreet
committed
bcachefs: io_read: remove from async obj list in rbio_done()
Previously, only split rbios allocated in io_read.c would be removed from the async obj list. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 347e9f5 commit 3079294

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs/bcachefs/io_read.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ static noinline void promote_free(struct bch_read_bio *rbio)
166166
BUG_ON(ret);
167167

168168
async_object_list_del(c, promote, op->list_idx);
169+
async_object_list_del(c, rbio, rbio->list_idx);
169170

170171
bch2_data_update_exit(&op->write);
171172

@@ -456,6 +457,10 @@ static void bch2_rbio_done(struct bch_read_bio *rbio)
456457
if (rbio->start_time)
457458
bch2_time_stats_update(&rbio->c->times[BCH_TIME_data_read],
458459
rbio->start_time);
460+
#ifdef CONFIG_BCACHEFS_ASYNC_OBJECT_LISTS
461+
if (rbio->list_idx)
462+
async_object_list_del(rbio->c, rbio, rbio->list_idx);
463+
#endif
459464
bio_endio(&rbio->bio);
460465
}
461466

0 commit comments

Comments
 (0)