Message ID | 1656343521-62897-6-git-send-email-john.garry@huawei.com |
---|---|
State | Superseded |
Headers | show |
Series | DMA mapping changes for SCSI core | expand |
On Tue, Jun 28, 2022 at 12:33:58PM +0100, John Garry wrote: > Well Christoph originally offered to take this series via the dma-mapping > tree. > > @Christoph, is that still ok with you? If so, would you rather I send this > libata patch separately? The offer still stands, and I don't really care where the libata patch is routed. Just tell me what you prefer.
On 29/06/2022 06:58, Damien Le Moal wrote: > On 6/29/22 14:40, Christoph Hellwig wrote: >> On Tue, Jun 28, 2022 at 12:33:58PM +0100, John Garry wrote: >>> Well Christoph originally offered to take this series via the dma-mapping >>> tree. >>> >>> @Christoph, is that still ok with you? If so, would you rather I send this >>> libata patch separately? >> >> The offer still stands, and I don't really care where the libata >> patch is routed. Just tell me what you prefer. Cheers. > > If it is 100% independent from the other patches, I can take it. > Otherwise, feel free to take it ! > I'll just keep the all together - it's easier in case I need to change anything. Thanks!
On 6/29/22 16:43, John Garry wrote: > On 29/06/2022 06:58, Damien Le Moal wrote: >> On 6/29/22 14:40, Christoph Hellwig wrote: >>> On Tue, Jun 28, 2022 at 12:33:58PM +0100, John Garry wrote: >>>> Well Christoph originally offered to take this series via the dma-mapping >>>> tree. >>>> >>>> @Christoph, is that still ok with you? If so, would you rather I send this >>>> libata patch separately? >>> >>> The offer still stands, and I don't really care where the libata >>> patch is routed. Just tell me what you prefer. > > Cheers. > >> >> If it is 100% independent from the other patches, I can take it. >> Otherwise, feel free to take it ! >> > > I'll just keep the all together - it's easier in case I need to change > anything. Works for me. > > Thanks!
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 86dbb1cdfabd..24a43d540d9f 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -1060,6 +1060,7 @@ int ata_scsi_dev_config(struct scsi_device *sdev, struct ata_device *dev) dev->flags |= ATA_DFLAG_NO_UNLOAD; /* configure max sectors */ + dev->max_sectors = min(dev->max_sectors, sdev->host->max_sectors); blk_queue_max_hw_sectors(q, dev->max_sectors); if (dev->class == ATA_DEV_ATAPI) {