]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
be2iscsi 4.1.239.0 [PATCH 06/10] Fix for wrong dmsg setting in wrb
authorChuck Anderson <chuck.anderson@oracle.com>
Sat, 17 Dec 2011 04:06:31 +0000 (20:06 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 17 Dec 2011 04:06:31 +0000 (20:06 -0800)
Dec. 16, 2011
Oracle bugzilla 13257
Oracle bug 13465921
be2iscsi HBA driver v4.1.239.0 patch set for UEK R2(2.6.39)
jayamohan.kallickal@emulex.com

Ported driver version 4.1.239.0 to UEK2 2.6.39-100.0.17 (was 2.103.298.0)

Comments from the patch headers:

 Commit ID : 685e16fdcf4324fe75ff28940311598f01704eaa
 [SCSI] be2iscsi: Fix for wrong dmsg setting in wrb

    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
---
 be_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/be2iscsi/be_main.c

index 90b83fe551f8cf42bbe9a1d7a31b5cb3729d9161..28fa5e0efd633b97698ac227a4791b930b1ea425 100644 (file)
@@ -4042,11 +4042,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;