]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: update ->init_request and ->exit_request prototypes
authorChristoph Hellwig <hch@lst.de>
Mon, 1 May 2017 16:19:08 +0000 (10:19 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 2 May 2017 13:52:08 +0000 (07:52 -0600)
commit01404032af7d22637cbda6e9e32af80548e49873
tree46c56a31e8b72182c4f9f5d7937f790e9a111f68
parentaa979c727d8a1d51f9dd19bfcd7d7ee77c2fcf53
blk-mq: update ->init_request and ->exit_request prototypes

Remove the request_idx parameter, which can't be used safely now that we
support I/O schedulers with blk-mq.  Except for a superflous check in
mtip32xx it was unused anyway.

Also pass the tag_set instead of just the driver data - this allows drivers
to avoid some code duplication in a follow on cleanup.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
14 files changed:
block/blk-mq.c
drivers/block/loop.c
drivers/block/mtip32xx/mtip32xx.c
drivers/block/nbd.c
drivers/block/rbd.c
drivers/block/virtio_blk.c
drivers/md/dm-rq.c
drivers/mtd/ubi/block.c
drivers/nvme/host/fc.c
drivers/nvme/host/pci.c
drivers/nvme/host/rdma.c
drivers/nvme/target/loop.c
drivers/scsi/scsi_lib.c
include/linux/blk-mq.h