Skip to content

Commit f1350c2

Browse files
author
Kent Overstreet
committed
bcachefs: fix ref leak in btree_node_read_all_replicas
Signed-off-by: Kent Overstreet <[email protected]>
1 parent de39965 commit f1350c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/btree_io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,7 @@ static void btree_node_read_all_replicas_endio(struct bio *bio)
16091609
struct bch_dev *ca = bch2_dev_have_ref(c, rb->pick.ptr.dev);
16101610

16111611
bch2_latency_acct(ca, rb->start_time, READ);
1612+
percpu_ref_put(&ca->io_ref);
16121613
}
16131614

16141615
ra->err[rb->idx] = bio->bi_status;

0 commit comments

Comments
 (0)