blk-mq: remove useless checkings in blk_mq_update_nr_requests()
1) queue_requests_store() is the only caller of blk_mq_update_nr_requests(), where queue is already freezed, no need to check mq_freeze_depth; 2) q->tag_set must be set for request based device, and queue_is_mq() is already checked in blk_mq_queue_attr_visible(), no need to check q->tag_set. Signed-off-by:Yu Kuai <yukuai3@huawei.com> Reviewed-by:
Nilay Shroff <nilay@linux.ibm.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
Please sign in to comment