aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-sff.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@google.com>2011-07-22 16:48:32 -0400
committerJeff Garzik <jgarzik@pobox.com>2011-07-23 18:05:14 -0400
commitd4d8eaff78b1b0043e7674bead7018e4db8b03ba (patch)
treeb1d2be499bd91d2a5e3bd60d6c78318c51319e4b /drivers/ata/libata-sff.c
parent2cab7a4c5ccf96e0954e767af490ba9aee2c9b6f (diff)
[libata] Prevent warning during PMP error recovery
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>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r--drivers/ata/libata-sff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index 996a7a57accc..c24127dd6ef2 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -1333,6 +1333,7 @@ void ata_sff_flush_pio_task(struct ata_port *ap)
1333 1333
1334 cancel_delayed_work_sync(&ap->sff_pio_task); 1334 cancel_delayed_work_sync(&ap->sff_pio_task);
1335 ap->hsm_task_state = HSM_ST_IDLE; 1335 ap->hsm_task_state = HSM_ST_IDLE;
1336 ap->sff_pio_task_link = NULL;
1336 1337
1337 if (ata_msg_ctl(ap)) 1338 if (ata_msg_ctl(ap))
1338 ata_port_dbg(ap, "%s: EXIT\n", __func__); 1339 ata_port_dbg(ap, "%s: EXIT\n", __func__);