We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 347e9f5 commit 3079294Copy full SHA for 3079294
fs/bcachefs/io_read.c
@@ -166,6 +166,7 @@ static noinline void promote_free(struct bch_read_bio *rbio)
166
BUG_ON(ret);
167
168
async_object_list_del(c, promote, op->list_idx);
169
+ async_object_list_del(c, rbio, rbio->list_idx);
170
171
bch2_data_update_exit(&op->write);
172
@@ -456,6 +457,10 @@ static void bch2_rbio_done(struct bch_read_bio *rbio)
456
457
if (rbio->start_time)
458
bch2_time_stats_update(&rbio->c->times[BCH_TIME_data_read],
459
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
464
bio_endio(&rbio->bio);
465
}
466
0 commit comments