John Garry
0568e61225
ata: libata-scsi: cap ata_device->max_sectors according to shost->max_sectors
...
ATA devices (struct ata_device) have a max_sectors field which is
configured internally in libata. This is then used to (re)configure the
associated sdev request queue max_sectors value from how it is earlier set
in __scsi_init_queue(). In __scsi_init_queue() the max_sectors value is set
according to shost limits, which includes host DMA mapping limits.
Cap the ata_device max_sectors according to shost->max_sectors to respect
this shost limit.
Signed-off-by: John Garry <john.garry@huawei.com>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2022-07-19 11:11:49 +02:00
..
2022-02-20 09:06:05 +09:00
2022-05-09 20:36:00 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-28 12:27:35 -07:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2019-06-19 17:09:07 +02:00
2022-03-07 11:49:10 +09:00
2022-03-07 11:49:10 +09:00
2021-04-11 20:35:08 -06:00
2022-03-07 11:49:10 +09:00
2022-04-22 08:38:03 +09:00
2022-04-06 11:08:04 +09:00
2021-03-30 20:21:26 -06:00
2022-02-19 11:18:35 +09:00
2022-04-06 11:08:04 +09:00
2022-03-28 12:27:35 -07:00
2022-02-20 09:06:05 +09:00
2022-02-20 09:06:05 +09:00
2022-06-08 12:19:08 +09:00
2022-02-20 09:06:05 +09:00
2020-03-26 10:28:19 -06:00
2022-01-05 19:33:01 +09:00
2022-04-11 09:27:44 +09:00
2022-07-19 11:11:49 +02:00
2022-04-04 09:49:42 +09:00
2022-01-05 19:33:01 +09:00
2022-06-09 09:25:25 +09:00
2017-11-02 11:10:55 +01:00
2019-07-29 16:00:14 -06:00
2022-04-11 09:27:44 +09:00
2020-03-26 10:28:19 -06:00
2021-03-30 20:21:26 -06:00
2022-01-14 15:17:17 +09:00
2021-10-12 17:46:55 +09:00
2022-02-19 11:18:35 +09:00
2022-02-19 11:18:42 +09:00
2022-01-31 09:58:32 +09:00
2022-01-05 19:33:02 +09:00
2018-03-01 13:59:03 -08:00
2019-08-23 06:58:50 -06:00
2022-01-05 19:33:03 +09:00
2022-01-05 19:33:02 +09:00
2022-02-19 11:18:35 +09:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:06 +02:00
2022-01-05 19:33:03 +09:00
2022-01-05 19:33:03 +09:00
2019-05-21 10:50:45 +02:00
2022-02-20 09:06:05 +09:00
2021-11-29 20:28:13 +09:00
2022-05-16 20:22:37 +09:00
2018-03-19 07:41:36 -07:00
2022-02-19 11:18:49 +09:00
2019-08-26 13:58:59 -06:00
2022-03-23 14:35:59 -07:00
2022-02-19 11:18:49 +09:00
2021-01-31 08:05:46 -07:00
2022-02-19 11:18:35 +09:00
2019-05-21 10:50:45 +02:00
2022-01-14 15:17:16 +09:00
2019-05-21 10:50:45 +02:00
2022-03-07 11:49:10 +09:00
2021-03-12 07:28:31 -07:00
2021-10-12 09:52:35 +09:00
2022-03-07 11:49:10 +09:00
2022-04-22 08:45:06 +09:00
2022-04-11 09:25:20 +09:00
2019-05-21 10:50:45 +02:00
2022-01-14 15:17:16 +09:00
2019-08-26 13:58:59 -06:00
2019-05-21 11:28:46 +02:00
2022-02-20 09:06:05 +09:00
2022-06-06 09:52:17 +09:00
2022-03-07 11:49:10 +09:00
2019-05-21 10:50:45 +02:00
2021-03-30 20:21:26 -06:00
2021-10-12 17:46:59 +09:00
2022-04-20 13:29:34 +02:00
2020-01-29 20:54:51 -07:00
2022-01-31 09:58:32 +09:00
2022-01-05 19:33:01 +09:00
2021-03-30 20:21:25 -06:00
2022-01-31 09:58:31 +09:00
2022-03-10 11:17:59 +09:00
2021-10-12 17:47:02 +09:00
2021-06-24 18:49:01 -06:00
2019-05-21 11:28:46 +02:00
2022-01-05 19:33:03 +09:00
2022-02-20 09:06:05 +09:00
2021-06-16 06:50:25 -06:00
2019-06-05 17:37:00 +02:00
2022-01-05 19:33:03 +09:00
2022-04-13 12:42:51 +09:00
2021-03-30 20:21:25 -06:00
2021-03-30 20:21:25 -06:00
2022-02-19 11:18:35 +09:00
2022-04-13 12:42:53 +09:00
2022-01-05 19:33:01 +09:00
2022-04-04 09:56:34 +09:00
2022-03-23 14:35:59 -07:00
2022-04-22 08:38:18 +09:00
2017-11-02 11:10:55 +01:00
2022-03-07 11:49:10 +09:00
2022-02-20 09:06:05 +09:00
2022-03-07 11:49:10 +09:00
2022-01-05 19:33:02 +09:00
2022-01-05 19:33:01 +09:00
2019-05-21 11:28:46 +02:00
2022-01-05 19:33:02 +09:00
2022-03-07 11:49:10 +09:00
2022-01-04 20:00:57 +09:00
2022-01-05 19:33:02 +09:00
2019-05-21 11:28:46 +02:00
2022-02-20 09:06:05 +09:00
2022-01-05 19:33:03 +09:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2022-02-20 09:06:05 +09:00
2017-11-02 11:10:55 +01:00