summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohank@serverengines.com>2010-01-05 00:39:19 +0100
committerJames Bottomley <James.Bottomley@suse.de>2010-01-18 17:48:22 +0100
commit0ecb0b45f22df911c564070b64af21db36934f0f (patch)
tree1ec8d57b74e4b908ac37328f1d3e174f6c6abf70
parent[SCSI] be2iscsi: Use of opcode in beiscsi_alloc_pdu (diff)
downloadlinux-0ecb0b45f22df911c564070b64af21db36934f0f.tar.xz
linux-0ecb0b45f22df911c564070b64af21db36934f0f.zip
[SCSI] be2iscsi: decide which requests need completion
This patch decides whether ack based completion is required or not Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/be2iscsi/be_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 0fae26468a09..26d7016492da 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -3546,6 +3546,11 @@ static int beiscsi_mtask(struct iscsi_task *task)
else
AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb,
INI_RD_CMD);
+ if (task->hdr->ttt == ISCSI_RESERVED_TAG)
+ AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0);
+ else
+ AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1);
+
hwi_write_buffer(pwrb, task);
break;
case ISCSI_OP_TEXT:
@@ -3554,6 +3559,7 @@ static int beiscsi_mtask(struct iscsi_task *task)
else
AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb,
INI_WR_CMD);
+ AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0);
AMAP_SET_BITS(struct amap_iscsi_wrb, dsp, pwrb, 1);
hwi_write_buffer(pwrb, task);
break;