libata clear horkage on ata_dev_init()
authorTejun Heo <htejun@gmail.com>
Mon, 3 Sep 2007 03:20:11 +0000 (12:20 +0900)
committerJeff Garzik <jeff@garzik.org>
Tue, 11 Sep 2007 02:07:42 +0000 (22:07 -0400)
dev->horkage should be cleared over device hotunplug/plug.  Clear it
in ata_dev_init().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c

index a3ee087..c43de9a 100644 (file)
@@ -6035,6 +6035,7 @@ void ata_dev_init(struct ata_device *dev)
         */
        spin_lock_irqsave(ap->lock, flags);
        dev->flags &= ~ATA_DFLAG_INIT_MASK;
+       dev->horkage = 0;
        spin_unlock_irqrestore(ap->lock, flags);
 
        memset((void *)dev + ATA_DEVICE_CLEAR_OFFSET, 0,