summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-eh.c
diff options
context:
space:
mode:
authorzhao, forrest <forrest.zhao@intel.com>2006-06-12 06:01:34 +0200
committerJeff Garzik <jeff@garzik.org>2006-06-12 06:18:35 +0200
commit3057ac3c1a992ee135cbb7b7d1a12e58d81f0739 (patch)
tree38d83a88ee949b9db8f6655f90f98d88f8a5f2fd /drivers/scsi/libata-eh.c
parentlibata: more verbose request_irq() failure (diff)
downloadlinux-3057ac3c1a992ee135cbb7b7d1a12e58d81f0739.tar.xz
linux-3057ac3c1a992ee135cbb7b7d1a12e58d81f0739.zip
[PATCH] Snoop SET FEATURES - WRITE CACHE ENABLE/DISABLE command(v5)
This patch makes libata snoop 'SET FEATURES - WRITE CACHE ENABLE/DISABLE' command, executing requisite revalidation processes to update cached data. Signed-off-by: Forrest Zhao <forrest.zhao@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-eh.c')
-rw-r--r--drivers/scsi/libata-eh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c
index 6285257a890d..f82799e22588 100644
--- a/drivers/scsi/libata-eh.c
+++ b/drivers/scsi/libata-eh.c
@@ -1554,6 +1554,9 @@ static int ata_eh_revalidate_and_attach(struct ata_port *ap,
if (rc)
break;
+ /* schedule the scsi_rescan_device() here */
+ queue_work(ata_aux_wq, &(ap->scsi_rescan_task));
+
ehc->i.action &= ~ATA_EH_REVALIDATE;
} else if (dev->class == ATA_DEV_UNKNOWN &&
ehc->tries[dev->devno] &&