OSDN Git Service

block: remove blk_init_request_from_bio
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Jun 2019 10:29:00 +0000 (12:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 16:29:22 +0000 (10:29 -0600)
commitf924cddebc900f7cb10d5538d69523e558fa681c
tree63df4c6d084019d25e2b1f70909a8a9a90dfd5ed
parent0c8cf8c2a553f01732f23ba407fae8edb0a18ff5
block: remove blk_init_request_from_bio

lightnvm should have never used this function, as it is sending
passthrough requests, so switch it to blk_rq_append_bio like all the
other passthrough request users.  Inline blk_init_request_from_bio into
the only remaining caller.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Javier González <javier@javigon.com>
Reviewed-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c
drivers/nvme/host/lightnvm.c
include/linux/blkdev.h