]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ide: don't send cacheflush to drives that don't understand it
authorArjan van de Ven <arjanv@redhat.com>
Fri, 7 May 2004 02:19:15 +0000 (19:19 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 7 May 2004 02:19:15 +0000 (19:19 -0700)
drivers/ide/ide-disk.c

index e8cfd222669cc302046ae1c8dd5c2a3c605395e3..ac94367eeade834910e1b2caf81a6b07c4b76e0e 100644 (file)
@@ -1774,6 +1774,9 @@ static int idedisk_open(struct inode *inode, struct file *filp)
 
 static int ide_cacheflush_p(ide_drive_t *drive)
 {
+       if (!(drive->id->cfs_enable_2 & 0x3000))
+               return 0;
+
        if(drive->wcache)
        {
                if (do_idedisk_flushcache(drive))