Re: [PATCH 10/16] blk-mq: cleanup and improve list insertion

From: Hannes Reinecke
Date: Thu Nov 01 2018 - 05:28:53 EST


On 10/30/18 7:32 PM, Jens Axboe wrote:
It's somewhat strange to have a list insertion function that
relies on the fact that the caller has mapped things correctly.
Pass in the hardware queue directly for insertion, which makes
for a much cleaner interface and implementation.

Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
---
block/blk-mq-sched.c | 8 +-------
block/blk-mq-sched.h | 2 +-
block/blk-mq.c | 25 ++++++++++++++-----------
3 files changed, 16 insertions(+), 19 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes