Martin K. Petersen
6b7e9cde49
sd: Fix rw_max for devices that report an optimal xfer size
...
For historic reasons, io_opt is in bytes and max_sectors in block layer
sectors. This interface inconsistency is error prone and should be
fixed. But for 4.4--4.7 let's make the unit difference explicit via a
wrapper function.
Fixes: d0eb20a863ba ("sd: Optimal I/O size is in bytes, not sectors")
Cc: stable@vger.kernel.org # 4.4+
Reported-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Andrew Patterson <andrew.patterson@hpe.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-06-01 22:07:47 -04:00
..
2016-05-16 16:45:48 +02:00
2016-05-18 16:38:59 -07:00
2016-05-16 19:51:04 -07:00
2016-05-17 16:26:30 -07:00
2016-05-13 16:54:59 +02:00
2016-05-18 13:14:02 -07:00
2016-05-17 16:26:30 -07:00
2016-05-18 13:14:02 -07:00
2016-05-17 09:49:28 -07:00
2016-05-16 19:17:22 -07:00
2016-05-06 22:08:46 +02:00
2016-05-13 17:30:18 +08:00
2016-05-03 11:22:10 +09:00
2016-04-16 22:52:03 +05:30
2016-05-17 17:05:30 -07:00
2016-05-04 14:16:49 -04:00
2016-05-18 15:30:04 -07:00
2016-05-17 17:39:42 -07:00
2016-05-18 13:14:02 -07:00
2016-05-17 12:42:27 +02:00
2016-04-30 14:05:44 -07:00
2016-04-25 07:26:29 -07:00
2016-04-22 15:31:54 +02:00
2016-04-12 16:00:39 -06:00
2016-05-04 08:44:27 +01:00
2016-05-18 16:38:59 -07:00
2016-05-18 17:12:23 -07:00
2016-05-05 08:35:00 +02:00
2016-05-18 12:35:46 -07:00
2016-05-08 23:52:13 -04:00
2016-05-06 10:26:07 +02:00
2016-04-13 11:36:44 +02:00
2016-05-06 12:51:10 -06:00
2016-04-14 18:40:47 -07:00
2016-05-17 16:13:00 -07:00
2016-05-18 17:03:51 -07:00
2016-04-18 14:25:29 +02:00
2016-04-28 10:58:33 +02:00
2016-05-18 16:38:59 -07:00
2016-05-17 17:39:42 -07:00
2016-05-16 16:46:03 -07:00
2016-05-17 16:03:32 -07:00
2016-05-18 13:14:02 -07:00
2016-05-18 12:11:22 -07:00
2016-05-10 00:01:47 +02:00
2016-05-06 10:20:10 -07:00
2016-05-17 16:03:32 -07:00
2016-05-02 08:18:01 -07:00
2016-05-18 12:28:29 -07:00
2016-05-18 13:14:02 -07:00
2016-05-05 10:13:59 +02:00
2016-05-18 13:14:02 -07:00
2016-05-18 13:14:02 -07:00
2016-05-17 17:39:42 -07:00
2016-04-22 10:29:05 +02:00
2016-04-26 19:12:28 +02:00
2016-05-16 19:17:22 -07:00
2016-05-13 14:23:46 +01:00
2016-05-05 17:38:53 -07:00
2016-05-13 14:23:49 +01:00
2016-05-12 15:50:19 -07:00
2016-05-06 11:08:58 -07:00
2016-04-21 23:21:00 +02:00
2016-05-18 16:38:59 -07:00
2016-06-01 22:07:47 -04:00
2016-05-18 13:14:02 -07:00
2016-05-06 18:20:37 +01:00
2016-04-26 15:34:49 +02:00
2016-05-18 17:03:51 -07:00
2016-05-17 17:05:30 -07:00
2016-05-11 02:15:31 +02:00
2016-05-17 17:39:42 -07:00
2016-05-18 16:38:59 -07:00
2016-05-16 19:41:41 -07:00
2016-05-01 15:50:08 +03:00
2016-04-18 12:52:38 +02:00
2016-04-28 10:52:28 +02:00
2016-05-07 07:00:07 +02:00