Commit 685e16fd authored by Jayamohan Kallickal's avatar Jayamohan Kallickal Committed by James Bottomley
Browse files

[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

Signed-off-by: default avatarJayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent e5285860
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;