Damien Le Moal
141f3d6256
ata: libata-sata: Fix device queue depth control
...
The function __ata_change_queue_depth() uses the helper
ata_scsi_find_dev() to get the ata_device structure of a scsi device and
set that device maximum queue depth. However, when the ata device is
managed by libsas, ata_scsi_find_dev() returns NULL, turning
__ata_change_queue_depth() into a nop, which prevents the user from
setting the maximum queue depth of ATA devices used with libsas based
HBAs.
Fix this by renaming __ata_change_queue_depth() to
ata_change_queue_depth() and adding a pointer to the ata_device
structure of the target device as argument. This pointer is provided by
ata_scsi_change_queue_depth() using ata_scsi_find_dev() in the case of
a libata managed device and by sas_change_queue_depth() using
sas_to_ata_dev() in the case of a libsas managed ata device.
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com >
Tested-by: John Garry <john.garry@huawei.com >
2022-09-28 20:47:31 +09: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-07-08 14:09:19 -07:00
2022-03-28 12:27:35 -07:00
2022-02-20 09:06:05 +09:00
2022-06-17 16:35:02 +09:00
2022-09-27 08:20:37 +09:00
2022-08-16 05:42:51 +09:00
2020-03-26 10:28:19 -06:00
2022-01-05 19:33:01 +09:00
2022-09-28 20:47:31 +09:00
2022-09-28 20:47:26 +09:00
2022-04-04 09:49:42 +09:00
2022-01-05 19:33:01 +09:00
2022-06-13 11:42:58 +09:00
2017-11-02 11:10:55 +01:00
2019-07-29 16:00:14 -06:00
2022-06-20 08:21:57 +09:00
2020-03-26 10:28:19 -06:00
2022-06-17 16:35:02 +09:00
2022-06-17 16:35:02 +09:00
2022-06-17 16:35:02 +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
2022-06-30 08:21:43 +09: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-06-17 16:35:02 +09:00
2019-08-26 13:58:59 -06:00
2022-06-17 16:35:02 +09:00
2022-06-17 16:35:02 +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-06-20 20:02:21 +09:00
2022-04-22 08:45:06 +09:00
2022-06-22 12:51:49 +10: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-06-17 16:35:02 +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-06-17 16:35:02 +09:00
2022-04-13 12:42:51 +09:00
2022-06-17 16:35:02 +09:00
2021-03-30 20:21:25 -06:00
2022-02-19 11:18:35 +09:00
2022-06-17 16:35:02 +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-08-03 07:59:12 +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