diff options
author | Jayamohan Kallickal <jayamohan.kallickal@emulex.com> | 2011-10-07 20:31:09 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-16 12:01:54 -0400 |
commit | 685e16fdcf4324fe75ff28940311598f01704eaa (patch) | |
tree | 0782ad885726468362f0e71b6abdef06498e23fe /drivers/scsi/be2iscsi | |
parent | e528586079a20c3d28a490ec8e3271bb4348fc3e (diff) |
[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: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 804c46e280ae..e166d547a341 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -4044,11 +4044,11 @@ static int beiscsi_mtask(struct iscsi_task *task) | |||
4044 | TGT_DM_CMD); | 4044 | TGT_DM_CMD); |
4045 | AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, | 4045 | AMAP_SET_BITS(struct amap_iscsi_wrb, cmdsn_itt, |
4046 | pwrb, 0); | 4046 | pwrb, 0); |
4047 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); | 4047 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1); |
4048 | } else { | 4048 | } else { |
4049 | AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, | 4049 | AMAP_SET_BITS(struct amap_iscsi_wrb, type, pwrb, |
4050 | INI_RD_CMD); | 4050 | INI_RD_CMD); |
4051 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 1); | 4051 | AMAP_SET_BITS(struct amap_iscsi_wrb, dmsg, pwrb, 0); |
4052 | } | 4052 | } |
4053 | hwi_write_buffer(pwrb, task); | 4053 | hwi_write_buffer(pwrb, task); |
4054 | break; | 4054 | break; |