Commit a2e83ef9 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent db18a53e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2163,7 +2163,7 @@ bool blk_throtl_bio(struct bio *bio)
	struct request_queue *q = bio->bi_disk->queue;
	struct blkcg_gq *blkg = bio->bi_blkg;
	struct throtl_qnode *qn = NULL;
	struct throtl_grp *tg = blkg_to_tg(blkg ?: q->root_blkg);
	struct throtl_grp *tg = blkg_to_tg(blkg);
	struct throtl_service_queue *sq;
	bool rw = bio_data_dir(bio);
	bool throttled = false;