diff options
author | Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com> | 2013-03-14 19:52:23 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-04-06 12:23:18 +0200 |
commit | c4ee22a3708d54d8fb5ee8a23ca08e74abcaedfd (patch) | |
tree | 9fef869552d412bb9484c8e078c27e5f2799d46e /drivers/scsi/ipr.c | |
parent | [SCSI] st: Take additional queue ref in st_probe (diff) | |
download | linux-c4ee22a3708d54d8fb5ee8a23ca08e74abcaedfd.tar.xz linux-c4ee22a3708d54d8fb5ee8a23ca08e74abcaedfd.zip |
[SCSI] ipr: fix addition of abort command to HRRQ free queue
The abort command issued by ipr_cancel_op() is being added to the wrong
HRRQ free queue after the command returns. Fix it by using the HRRQ
pointer in the ipr command struct itself.
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/scsi/ipr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index fadf1528db3d..21e0a0ae43a8 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -5148,7 +5148,7 @@ static int ipr_cancel_op(struct scsi_cmnd *scsi_cmd) ipr_trace; } - list_add_tail(&ipr_cmd->queue, &hrrq->hrrq_free_q); + list_add_tail(&ipr_cmd->queue, &ipr_cmd->hrrq->hrrq_free_q); if (!ipr_is_naca_model(res)) res->needs_sync_complete = 1; |