diff options
author | zhao, forrest <forrest.zhao@intel.com> | 2006-06-12 12:01:34 +0800 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-12 00:18:35 -0400 |
commit | 3057ac3c1a992ee135cbb7b7d1a12e58d81f0739 (patch) | |
tree | 38d83a88ee949b9db8f6655f90f98d88f8a5f2fd /drivers/scsi/libata-eh.c | |
parent | 39b07ce6d9f7cd4da8567baed844801e0aaa7b1a (diff) | |
download | op-kernel-dev-3057ac3c1a992ee135cbb7b7d1a12e58d81f0739.zip op-kernel-dev-3057ac3c1a992ee135cbb7b7d1a12e58d81f0739.tar.gz |
[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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c index 6285257..f82799e 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] && |