diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-12-23 15:38:30 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-01-18 04:58:09 -0500 |
commit | def2b339b422070ecb99298a80e4b15033adc0ce (patch) | |
tree | 820c7c3d2e4395ba9567e500111eb53975fe74a9 /drivers/target/loopback | |
parent | 2ed22c9cbca61f0f696a0a1cbbb777da281bd79d (diff) |
target: Add protection SGLs to target_submit_cmd_map_sgls
This patch adds support to target_submit_cmd_map_sgls() for
accepting 'sgl_prot' + 'sgl_prot_count' parameters for
DIF protection information.
Note the passed parameters are stored at se_cmd->t_prot_sg
and se_cmd->t_prot_nents respectively.
Also, update tcm_loop and vhost-scsi fabrics usage of
target_submit_cmd_map_sgls() to take into account the
new parameters.
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 763ee450f71b..112b795a7b80 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -217,7 +217,7 @@ static void tcm_loop_submission_work(struct work_struct *work) | |||
217 | scsi_bufflen(sc), tcm_loop_sam_attr(sc), | 217 | scsi_bufflen(sc), tcm_loop_sam_attr(sc), |
218 | sc->sc_data_direction, 0, | 218 | sc->sc_data_direction, 0, |
219 | scsi_sglist(sc), scsi_sg_count(sc), | 219 | scsi_sglist(sc), scsi_sg_count(sc), |
220 | sgl_bidi, sgl_bidi_count); | 220 | sgl_bidi, sgl_bidi_count, NULL, 0); |
221 | if (rc < 0) { | 221 | if (rc < 0) { |
222 | set_host_byte(sc, DID_NO_CONNECT); | 222 | set_host_byte(sc, DID_NO_CONNECT); |
223 | goto out_done; | 223 | goto out_done; |