summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2018-06-19 17:58:24 +0200
committerBen Hutchings <ben@decadent.org.uk>2018-11-20 18:05:18 +0000
commit8f78b5f0e424c179785677c787842e971b5edc08 (patch)
tree662d4e848a46db3b65de25fdc967b70015b24521 /arch/mips
parent5da0c1ff04a40742fdb75e7bab0b3ec4fa1c20ca (diff)
scsi: target: Fix truncated PR-in ReadKeys response
commit 63ce3c384db26494615e3c8972bcd419ed71f4c4 upstream. SPC5r17 states that the contents of the ADDITIONAL LENGTH field are not altered based on the allocation length, so always calculate and pack the full key list length even if the list itself is truncated. According to Maged: Yes it fixes the "Storage Spaces Persistent Reservation" test in the Windows 2016 Server Failover Cluster validation suites when having many connections that result in more than 8 registrations. I tested your patch on 4.17 with iblock. This behaviour can be tested using the libiscsi PrinReadKeys.Truncate test. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Mike Christie <mchristi@redhat.com> Tested-by: Maged Mokhtar <mmokhtar@petasan.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> [bwh: Backported to 3.16: Convert from open-coded put_unaligned_be64()] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions