]> Pileus Git - ~andy/linux/commitdiff
[SCSI] be2iscsi: Fix for wrong dmsg setting in wrb
authorJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Sat, 8 Oct 2011 00:31:09 +0000 (19:31 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 16 Oct 2011 16:01:54 +0000 (11:01 -0500)
   This patch fixes wrong dmsg setting when we send out wrb.

If the ttt is not ISCSI_RESERVED_TAG then we should be setting
dmsg=1 so that the completion is done without waiting for a
iscsi level response from the target

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/be2iscsi/be_main.c

index 804c46e280ae405ce3cd27bcfcb262330ee0832d..e166d547a3412a278fe48c422681fdf7a031ca26 100644 (file)
@@ -4044,11 +4044,11 @@ static int beiscsi_mtask(struct iscsi_task *task)
                                      TGT_DM_CMD);
                        AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt,
                                      pwrb, 0);
-                       AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0);
+                       AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1);
                } else {
                        AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb,
                                      INI_RD_CMD);
-                       AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1);
+                       AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0);
                }
                hwi_write_buffer(pwrb, task);
                break;