blk-mq: pass request queue into get/put budget callback
blk-mq budget is abstract from scsi's device queue depth, and it is always per-request-queue instead of hctx. It can be quite absurd to get a budget from one hctx, then dequeue a request from scheduler queue, and this request may not belong to this hctx, at least for bfq and deadline. So fix the mess and always pass request queue to get/put budget callback. Signed-off-by:Ming Lei <ming.lei@redhat.com> Tested-by:
Baolin Wang <baolin.wang7@gmail.com> Reviewed-by:
Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Douglas Anderson <dianders@chromium.org> Reviewed-by:
Sagi Grimberg <sagi@grimberg.me> Cc: Sagi Grimberg <sagi@grimberg.me> Cc: Baolin Wang <baolin.wang7@gmail.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Douglas Anderson <dianders@chromium.org> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- block/blk-mq-sched.c 4 additions, 4 deletionsblock/blk-mq-sched.c
- block/blk-mq.c 4 additions, 4 deletionsblock/blk-mq.c
- block/blk-mq.h 4 additions, 8 deletionsblock/blk-mq.h
- drivers/scsi/scsi_lib.c 3 additions, 5 deletionsdrivers/scsi/scsi_lib.c
- include/linux/blk-mq.h 2 additions, 2 deletionsinclude/linux/blk-mq.h
Loading
Please register or sign in to comment