Ram Pai
f2e767bb5d
scsi: mpt3sas: Force request partial completion alignment
...
The firmware or device, possibly under a heavy I/O load, can return on a
partial unaligned boundary. Scsi-ml expects these requests to be
completed on an alignment boundary. Scsi-ml blindly requeues the I/O
without checking the alignment boundary of the I/O request for the
remaining bytes. This leads to errors, since devices cannot perform
non-aligned read/write operations.
This patch fixes the issue in the driver. It aligns unaligned
completions of FS requests, by truncating them to the nearest alignment
boundary.
[mkp: simplified if statement]
Reported-by: Mauricio Faria De Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Acked-by: Sreekanth Reddy <Sreekanth.Reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-01-31 22:36:53 -05:00
..
2016-11-17 20:29:55 -05:00
2016-02-23 21:27:02 -05:00
2016-11-29 11:21:49 -05:00
2016-11-08 17:29:46 -05:00
2016-11-08 17:29:48 -05:00
2016-12-14 10:49:33 -08:00
2017-01-17 14:03:32 -05:00
2016-11-08 17:29:56 -05:00
2016-07-12 23:16:31 -04:00
2016-09-14 13:19:15 -04:00
2016-12-14 15:11:53 -05:00
2016-11-30 19:53:02 -05:00
2016-12-14 10:49:33 -08:00
2016-08-25 22:28:17 -04:00
2016-11-08 17:29:56 -05:00
2017-01-05 20:41:31 -05:00
2016-12-07 18:55:58 -05:00
2016-11-17 20:15:26 -05:00
2016-11-08 17:29:54 -05:00
2016-12-01 08:36:17 -05:00
2016-12-14 10:49:33 -08:00
2016-07-27 14:48:37 -07:00
2017-01-17 14:14:32 -05:00
2016-12-14 10:49:33 -08:00
2017-01-31 22:36:53 -05:00
2016-12-14 10:49:33 -08:00
2016-10-28 08:45:17 -06:00
2016-09-26 21:10:45 -04:00
2016-12-20 17:49:34 -05:00
2017-01-31 22:25:32 -05:00
2016-12-07 18:58:58 -05:00
2016-11-08 17:30:00 -05:00
2017-01-05 20:45:42 -05:00
2016-09-14 13:19:29 -04:00
2016-12-14 10:49:33 -08:00
2016-12-14 15:25:12 -05:00
2016-12-14 15:25:12 -05:00
2016-12-14 15:25:12 -05:00
2016-12-14 15:25:12 -05:00
2016-12-14 15:25:12 -05:00
2016-12-14 15:25:12 -05:00
2016-07-13 22:33:23 -04:00
2016-07-13 22:33:23 -04:00
2016-11-08 17:29:58 -05:00
2016-02-23 21:27:02 -05:00
2016-11-08 17:29:48 -05:00
2015-11-25 22:08:55 -05:00
2015-11-25 22:08:52 -05:00
2016-08-16 00:49:32 -04:00
2016-11-16 20:43:50 -05:00
2016-11-30 19:53:58 -05:00
2016-05-10 22:01:07 -04:00
2016-02-23 21:27:02 -05:00
2016-11-12 10:42:44 -05:00
2016-11-08 17:29:48 -05:00
2016-02-25 21:16:49 -05:00
2016-02-25 21:16:49 -05:00
2016-10-07 09:28:53 -07:00
2016-09-14 14:19:31 -04:00
2016-12-14 15:33:13 -05:00
2016-12-14 10:49:33 -08:00
2016-02-25 21:10:53 -05:00
2015-11-20 11:39:03 -05:00
2016-11-30 19:58:04 -05:00
2016-11-08 17:29:46 -05:00
2016-11-08 17:29:57 -05:00
2016-05-16 11:14:29 -04:00
2016-05-19 11:36:49 -07:00
2016-01-27 20:36:10 +08:00
2016-12-14 14:56:28 -05:00
2016-01-27 20:36:10 +08:00
2016-10-17 13:34:44 -04:00
2016-02-05 16:29:28 -06:00
2016-11-08 17:29:48 -05:00
2016-12-14 14:56:28 -05:00
2016-02-05 16:29:28 -06:00
2016-03-05 17:07:46 -05:00
2016-11-08 17:29:48 -05:00
2016-11-08 17:29:48 -05:00
2016-10-28 08:45:17 -06:00
2016-12-14 10:49:33 -08:00
2016-02-23 21:27:02 -05:00
2016-04-30 09:25:26 -07:00
2016-03-01 20:06:49 -05:00
2016-11-28 15:51:31 -05:00
2016-04-04 12:07:42 -04:00
2016-10-26 22:14:50 -04:00
2016-12-07 18:13:52 -05:00
2016-10-11 17:56:51 -04:00
2016-10-28 08:45:17 -06:00
2016-12-20 17:01:28 -05:00
2016-02-19 10:52:45 -05:00
2016-10-07 09:28:53 -07:00
2016-04-11 16:57:09 -04:00
2016-03-14 21:05:04 -04:00
2016-10-11 18:02:09 -04:00
2016-12-14 15:51:17 -05:00
2016-04-11 16:57:09 -04:00
2016-11-17 20:15:26 -05:00
2016-04-11 16:57:09 -04:00
2016-08-18 22:23:20 -04:00
2016-11-29 11:21:27 -05:00
2016-11-05 17:09:53 -06:00
2016-09-15 09:51:14 -04:00
2016-11-14 13:16:42 -07:00
2017-01-17 14:06:22 -05:00
2016-10-18 19:49:11 -06:00
2016-04-11 16:57:09 -04:00
2017-01-17 13:58:57 -05:00
2016-08-30 22:18:59 -04:00
2016-02-23 21:27:02 -05:00
2016-09-04 01:28:08 -04:00
2016-12-13 10:19:16 -08:00
2015-11-18 11:59:09 -05:00
2016-02-23 21:27:02 -05:00
2016-11-30 11:38:24 -05:00
2016-11-08 17:29:48 -05:00
2017-01-20 19:17:18 -05:00
2016-11-01 13:31:23 -04:00
2016-11-01 13:31:23 -04:00
2016-09-01 17:52:01 -07:00
2016-12-09 10:59:13 +01:00