From: Kleber Sacilotto de Souza <kleb...@linux.vnet.ibm.com> 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 <kleb...@linux.vnet.ibm.com> Signed-off-by: Wen Xiong <wenxi...@linux.vnet.ibm.com> --- drivers/scsi/ipr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/drivers/scsi/ipr.c =================================================================== --- a/drivers/scsi/ipr.c 2013-03-14 11:49:29.819030052 -0500 +++ b/drivers/scsi/ipr.c 2013-03-14 13:15:46.289276262 -0500 @@ -5148,7 +5148,7 @@ static int ipr_cancel_op(struct scsi_cmn 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; -- -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html