diff options
| author | Dan Williams <[email protected]> | 2011-12-07 07:24:42 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2012-02-19 20:04:52 +0000 |
| commit | a3a142524aa4b1539a64a55087bf12ffa4b1f94e (patch) | |
| tree | 2440c6438979cf410ca9231ab77d5115a140eca5 /drivers/scsi/libsas/sas_init.c | |
| parent | [SCSI] libsas: close error handling vs sas_ata_task_done() race (diff) | |
| download | kernel-a3a142524aa4b1539a64a55087bf12ffa4b1f94e.tar.gz kernel-a3a142524aa4b1539a64a55087bf12ffa4b1f94e.zip | |
[SCSI] libsas: prevent double completion of scmds from eh
We invoke task->task_done() to free the task in the eh case, but at this
point we are prepared for scsi_eh_flush_done_q() to finish off the scmd.
Introduce sas_end_task() to capture the final response status from the
lldd and free the task.
Also take the opportunity to kill this warning.
drivers/scsi/libsas/sas_scsi_host.c: In function ‘sas_end_task’:
drivers/scsi/libsas/sas_scsi_host.c:102:3: warning: case value ‘2’ not in enumerated type ‘enum exec_status’ [-Wswitch]
Signed-off-by: Dan Williams <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
0 files changed, 0 insertions, 0 deletions
