Skip to content

Commit

Permalink
[libata] Prevent warning during PMP error recovery
Browse files Browse the repository at this point in the history
Cleanup sff_pio_task_link when a command is cancel while the
pio_task thread has been scheduled.

Signed-off-by: Gwendal Grignou <gwendal@google.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Gwendal Grignou authored and Jeff Garzik committed Jul 23, 2011
1 parent 2cab7a4 commit d4d8eaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,7 @@ void ata_sff_flush_pio_task(struct ata_port *ap)

cancel_delayed_work_sync(&ap->sff_pio_task);
ap->hsm_task_state = HSM_ST_IDLE;
ap->sff_pio_task_link = NULL;

if (ata_msg_ctl(ap))
ata_port_dbg(ap, "%s: EXIT\n", __func__);
Expand Down

0 comments on commit d4d8eaf

Please sign in to comment.