OSDN Git Service

blk-iocost: don't allow to configure bio based device
authorYu Kuai <yukuai3@huawei.com>
Tue, 17 Jan 2023 07:08:03 +0000 (15:08 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:18:34 +0000 (15:18 -0700)
commit235a5a83f637e32646cd004c9b580decf1225566
treec84b8330e382fe7cac8193b30e64fedeb12825cc
parent7b7c5ae4402f810612e84c4ded7a302a61eeba59
blk-iocost: don't allow to configure bio based device

iocost is based on rq_qos, which can only work for request based device,
thus it doesn't make sense to configure iocost for bio based device.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230117070806.3857142-3-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iocost.c