]> git.baikalelectronics.ru Git - kernel.git/commit
target: Return descriptor format sense data in case the LU spans 64bit sectors
authorSagi Grimberg <sagig@mellanox.com>
Thu, 16 Jul 2015 07:28:05 +0000 (10:28 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 24 Jul 2015 05:54:21 +0000 (22:54 -0700)
commit426e16cb2425a1ce5e120501ed421950006e2a1f
treeea9153817ac32402c68db2eb7b9b48d4a5cbcd6a
parent631b1bb97062a7edf4c5f3e690ba047f491d86bc
target: Return descriptor format sense data in case the LU spans 64bit sectors

In case a LU spans 64bit sectors, fixed size sense data information
field is only 32 bits which means the sector information will be truncated.

Thus, if the LU spans 64bit sectors, use descriptor format sense data to
correctly report sector information.

Reported-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_hba.c
drivers/target/target_core_spc.c
drivers/target/target_core_transport.c
include/target/target_core_backend.h