From: Jens Axboe Date: Fri, 28 Apr 2017 14:53:01 +0000 (-0600) Subject: blk-mq-sched: remove hack that bypasses scheduler for reserved requests X-Git-Tag: MMI-PSA29.97-13-9~5662^2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f2779bff2f178496fb00b89797734ee245d2c93;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git blk-mq-sched: remove hack that bypasses scheduler for reserved requests We have update the troublesome driver (mtip32xx) to deal with this appropriately. So kill the hack that bypassed scheduler allocation and insertion for reserved requests. Reviewed-by: Ming Lei Reviewed-by: Christoph Hellwig Tested-by: Ming Lei Signed-off-by: Jens Axboe --- diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c index 8b361e192e8a..e79e9f18d7c2 100644 --- a/block/blk-mq-sched.c +++ b/block/blk-mq-sched.c @@ -82,11 +82,7 @@ struct request *blk_mq_sched_get_request(struct request_queue *q, if (likely(!data->hctx)) data->hctx = blk_mq_map_queue(q, data->ctx->cpu); - /* - * For a reserved tag, allocate a normal request since we might - * have driver dependencies on the value of the internal tag. - */ - if (e && !(data->flags & BLK_MQ_REQ_RESERVED)) { + if (e) { data->flags |= BLK_MQ_REQ_INTERNAL; /*