Skip to content

Commit a2e83ef

Browse files
Christoph Hellwigaxboe
authored andcommitted
blk-cgroup: remove a dead check in blk_throtl_bio
bios must have a valid block group by the time they are submitted. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent db18a53 commit a2e83ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-throttle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@ bool blk_throtl_bio(struct bio *bio)
21632163
struct request_queue *q = bio->bi_disk->queue;
21642164
struct blkcg_gq *blkg = bio->bi_blkg;
21652165
struct throtl_qnode *qn = NULL;
2166-
struct throtl_grp *tg = blkg_to_tg(blkg ?: q->root_blkg);
2166+
struct throtl_grp *tg = blkg_to_tg(blkg);
21672167
struct throtl_service_queue *sq;
21682168
bool rw = bio_data_dir(bio);
21692169
bool throttled = false;

0 commit comments

Comments
 (0)