On Thu, May 28, 2020 at 04:00:48PM +0800, Ming Lei wrote: > 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. > > Cc: Sagi Grimberg <sagi@xxxxxxxxxxx> > Cc: Baolin Wang <baolin.wang7@xxxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx> > Cc: Douglas Anderson <dianders@xxxxxxxxxxxx> > Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx> > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx> > Reviewed-by: Sagi Grimberg <sagi@xxxxxxxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> Reviewed-by: Daniel Wagner <dwagner@xxxxxxx>