From: Chuck Anderson Date: Sat, 17 Dec 2011 04:06:31 +0000 (-0800) Subject: be2iscsi 4.1.239.0 [PATCH 06/10] Fix for wrong dmsg setting in wrb X-Git-Tag: v2.6.39-400.9.0~820^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=380dbd87ef2f30572eeca5c934f488544ec5ca7d;p=users%2Fjedix%2Flinux-maple.git be2iscsi 4.1.239.0 [PATCH 06/10] Fix for wrong dmsg setting in wrb 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 --- diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 90b83fe551f8..28fa5e0efd63 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -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;