Re: [PATCH V7 5/6] blk-mq-sched: improve dispatching from sw queue

From: Bart Van Assche
Date: Thu Oct 12 2017 - 14:48:46 EST


On 10/12/17 11:37, Ming Lei wrote:
[ ... ]

This patch improves dispatching from sw queue by using the callback of
.get_budget and .put_budget

Reviewed-by: Omar Sandoval <osandov@xxxxxx>
Reviewed-by: Bart Van Assche <bart.vanassche@xxxxxxx>
Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx>
---

Jens/Omar, once .get_budget is introduced, it can be unusual to
return busy from .queue_rq, so we can't use the approach discussed
to decide to take one by one or flush all. Then this patch
simply checks if .get_budget is implemented, looks it is reasonable,
and in future it is even possible to take more requests by getting
enough budget first.
[ ... ]

Version 7 of this patch differs significantly from the version I reviewed so I think you should remove my Reviewed-by tag.

Bart.