Re: [PATCH v2 2/8] qla2xxx: cleanup cmd in qla workqueue before processing TMR

2015-07-27 Thread Hannes Reinecke
On 07/14/2015 10:00 PM, Himanshu Madhani wrote: > From: Swapnil Nagle > > Since cmds go into qla_tgt_wq and TMRs don't, it's possible that TMR > like TASK_ABORT can be queued over the cmd for which it was meant. > To avoid this race, use a per-port list to keep track of cmds that > are enqueued t

[PATCH v2 2/8] qla2xxx: cleanup cmd in qla workqueue before processing TMR

2015-07-14 Thread Himanshu Madhani
From: Swapnil Nagle Since cmds go into qla_tgt_wq and TMRs don't, it's possible that TMR like TASK_ABORT can be queued over the cmd for which it was meant. To avoid this race, use a per-port list to keep track of cmds that are enqueued to qla_tgt_wq but not yet processed. When a TMR arrives, iter