block: move dma_pad handling from blk_rq_map_sg into the callers
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:42:25 +0000 (09:42 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Apr 2020 16:47:39 +0000 (10:47 -0600)
commitbdf8710d69f82ee6fd41b0166300c3306898b3c1
tree6c000bb2ac29bc058304faf583d58628cb97b34f
parentcc97923a5bccc776851c242b61015faf288d5c22
block: move dma_pad handling from blk_rq_map_sg into the callers

There are only two callers of blk_rq_map_sg/__blk_rq_map_sg that set
the dma_pad value in the queue.  Move the handling into those callers
instead of burdening the common code, and move the ->extra_len field
from struct request to struct scsi_cmnd.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-merge.c
block/blk-mq.c
drivers/ata/libata-scsi.c
drivers/ide/ide-io.c
drivers/scsi/scsi_lib.c
include/linux/blkdev.h
include/scsi/scsi_cmnd.h