]> git.baikalelectronics.ru Git - kernel.git/commit
block: move dma drain handling to scsi
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:42:24 +0000 (09:42 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 22 Apr 2020 16:47:35 +0000 (10:47 -0600)
commit2d82ca3a37d06375bd91c2d8e010c2d60a6c7ef5
treed6510d4f326674e96bdf70c4f07472f492537db8
parent43d0d753c229297ff0fed7a3cd7ccab4432ef87f
block: move dma drain handling to scsi

Don't burden the common block code with with specifics of the libata DMA
draining mechanism.  Instead move most of the code to the scsi midlayer.

That also means the nr_phys_segments adjustments in the blk-mq fast path
can go away entirely, given that SCSI never looks at nr_phys_segments
after mapping the request to a scatterlist.

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