diff options
| author | Ram Pai <[email protected]> | 2017-01-26 18:37:01 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-02-01 03:36:53 +0000 |
| commit | f2e767bb5d6ee0d988cb7d4e54b0b21175802b6b (patch) | |
| tree | 02856806fddc633c2ff9f24703feba2d4e402b56 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | scsi: qla2xxx: Avoid that issuing a LIP triggers a kernel crash (diff) | |
| download | kernel-f2e767bb5d6ee0d988cb7d4e54b0b21175802b6b.tar.gz kernel-f2e767bb5d6ee0d988cb7d4e54b0b21175802b6b.zip | |
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 <[email protected]>
Signed-off-by: Guilherme G. Piccoli <[email protected]>
Signed-off-by: Ram Pai <[email protected]>
Acked-by: Sreekanth Reddy <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
