vhost-scsi: Include prot_bytes into expected data transfer length
authorNicholas Bellinger <[email protected]>
Tue, 10 Jun 2014 08:19:38 +0000 (01:19 -0700)
committerNicholas Bellinger <[email protected]>
Wed, 11 Jun 2014 20:06:50 +0000 (13:06 -0700)
commit9f977ef7b671f6169eca78bf40f230fe84b7c7e5
tree88845561247d1f3f429d97e2800b347eb91ed261
parente2a4f55c6498b59a17a85a1bb6db122a993ffe02
vhost-scsi: Include prot_bytes into expected data transfer length

This patch updates vhost_scsi_get_tag() to accept the combined
expected data transfer length + T10 PI bytes as the value passed
into target_submit_cmd().

This is required now that target-core logic in commit 14ef9200
expects to subtract se_cmd->prot_length from se_cmd->data_length.

Cc: Paolo Bonzini <[email protected]>
Cc: Michael S. Tsirkin <[email protected]>
Cc: Martin K. Petersen <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
drivers/vhost/scsi.c