workqueue: convert cancel_rearming_delayed_work[queue]() users to cancel_delayed_work...
[firefly-linux-kernel-4.4.55.git] / drivers / ata / libata-core.c
index 7f77c67d267ca454f63b5501ab1bb82d5fe9f16d..6669b44044fbb02dd582086fd713a147a55727fb 100644 (file)
@@ -6122,7 +6122,7 @@ static void ata_port_detach(struct ata_port *ap)
        /* it better be dead now */
        WARN_ON(!(ap->pflags & ATA_PFLAG_UNLOADED));
 
-       cancel_rearming_delayed_work(&ap->hotplug_task);
+       cancel_delayed_work_sync(&ap->hotplug_task);
 
  skip_eh:
        if (ap->pmp_link) {