scsi: Use blk_rq_map_user_io helper
authorAnuj Gupta <anuj20.g@samsung.com>
Fri, 30 Sep 2022 06:27:41 +0000 (11:57 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Sep 2022 13:51:13 +0000 (07:51 -0600)
commit6732932c836a4313f471b92b4d90761f31d3fa81
treeb7e34e82f49c84152786373f69d7e154d8b79562
parent557654025df5706785d395558244890dc4b2c875
scsi: Use blk_rq_map_user_io helper

Use the new blk_rq_map_user_io helper instead of duplicating code at
various places. Additionally this also takes advantage of the on-stack
iov fast path.

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220930062749.152261-5-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/scsi_ioctl.c
drivers/scsi/sg.c