block: move ->make_request_fn to struct block_device_operations
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jul 2020 08:59:43 +0000 (10:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 13:27:24 +0000 (07:27 -0600)
commitc62b37d96b6eb3ec5ae4cbe00db107bf15aebc93
treeb027652585de866a33a22a8a15612f367cdf5f68
parente439ab710fb0564dccb52b0519b3d354ea2a9c50
block: move ->make_request_fn to struct block_device_operations

The make_request_fn is a little weird in that it sits directly in
struct request_queue instead of an operation vector.  Replace it with
a block_device_operations method called submit_bio (which describes much
better what it does).  Also remove the request_queue argument to it, as
the queue can be derived pretty trivially from the bio.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
36 files changed:
Documentation/block/biodoc.rst
Documentation/block/writeback_cache_control.rst
arch/m68k/emu/nfblock.c
arch/xtensa/platforms/iss/simdisk.c
block/blk-cgroup.c
block/blk-core.c
block/blk-mq.c
block/blk.h
drivers/block/brd.c
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_req.c
drivers/block/null_blk_main.c
drivers/block/pktcdvd.c
drivers/block/ps3vram.c
drivers/block/rsxx/dev.c
drivers/block/umem.c
drivers/block/zram/zram_drv.c
drivers/lightnvm/core.c
drivers/lightnvm/pblk-init.c
drivers/md/bcache/request.c
drivers/md/bcache/request.h
drivers/md/bcache/super.c
drivers/md/dm.c
drivers/md/md.c
drivers/nvdimm/blk.c
drivers/nvdimm/btt.c
drivers/nvdimm/pmem.c
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h
drivers/s390/block/dcssblk.c
drivers/s390/block/xpram.c
include/linux/blk-mq.h
include/linux/blkdev.h
include/linux/lightnvm.h