block: add blk_rq_map_user_io
authorAnuj Gupta <anuj20.g@samsung.com>
Fri, 30 Sep 2022 06:27:40 +0000 (11:57 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Sep 2022 13:51:13 +0000 (07:51 -0600)
commit557654025df5706785d395558244890dc4b2c875
tree4dd57133e765dfc9eca2b8390895207c32eadaee
parent9cda70f622cdcf049521a9c2886e5fd8a90a0591
block: add blk_rq_map_user_io

Create a helper blk_rq_map_user_io for mapping of vectored as well as
non-vectored requests. This will help in saving dupilcation of code at few
places in scsi and nvme.

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Suggested-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220930062749.152261-4-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c
include/linux/blk-mq.h