diff options
author | Jayamohan Kallickal <jayamohank@serverengines.com> | 2010-01-04 18:38:39 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-01-18 11:48:21 -0500 |
commit | d7aea67b8a7665fe5e53cdf59ba76c9b8d67b751 (patch) | |
tree | a33db995ae96d4eff2fc069aa4225786bd7e8c72 /drivers/scsi/be2iscsi/be_main.c | |
parent | 2807afb7411b97834fc7338f3735f3d152443551 (diff) |
[SCSI] be2iscsi: Use of opcode in beiscsi_alloc_pdu
This patch enables use of opcode that is passed in
Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 18471ede7f80..0fae26468a09 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -3339,7 +3339,7 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode) | |||
3339 | goto free_hndls; | 3339 | goto free_hndls; |
3340 | } else { | 3340 | } else { |
3341 | io_task->scsi_cmnd = NULL; | 3341 | io_task->scsi_cmnd = NULL; |
3342 | if ((task->hdr->opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGIN) { | 3342 | if ((opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGIN) { |
3343 | if (!beiscsi_conn->login_in_progress) { | 3343 | if (!beiscsi_conn->login_in_progress) { |
3344 | spin_lock(&phba->mgmt_sgl_lock); | 3344 | spin_lock(&phba->mgmt_sgl_lock); |
3345 | io_task->psgl_handle = (struct sgl_handle *) | 3345 | io_task->psgl_handle = (struct sgl_handle *) |