blk-mq: Drop blk_mq_ops.timeout 'reserved' arg
authorJohn Garry <john.garry@huawei.com>
Wed, 6 Jul 2022 12:03:51 +0000 (20:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:33:53 +0000 (06:33 -0600)
commit9bdb4833dd399cbff82cc20893f52bdec66a9eca
tree9b70359858af4b60146836f65baafa1228399951
parent99e48cd6855e9535488e3c90d65edd46c6e6fc1b
blk-mq: Drop blk_mq_ops.timeout 'reserved' arg

With new API blk_mq_is_reserved_rq() we can tell if a request is from
the reserved pool, so stop passing 'reserved' arg. There is actually
only a single user of that arg for all the callback implementations, which
can use blk_mq_is_reserved_rq() instead.

This will also allow us to stop passing the same 'reserved' around the
blk-mq iter functions next.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # For MMC
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/1657109034-206040-4-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
16 files changed:
block/blk-mq.c
block/bsg-lib.c
drivers/block/mtip32xx/mtip32xx.c
drivers/block/nbd.c
drivers/block/null_blk/main.c
drivers/mmc/core/queue.c
drivers/nvme/host/apple.c
drivers/nvme/host/fc.c
drivers/nvme/host/pci.c
drivers/nvme/host/rdma.c
drivers/nvme/host/tcp.c
drivers/s390/block/dasd.c
drivers/s390/block/dasd_int.h
drivers/scsi/scsi_error.c
drivers/scsi/scsi_priv.h
include/linux/blk-mq.h