Commit 82ec2170 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds

[PATCH] ide: don't send cacheflush to drives that don't understand it

parent 57bea21a
......@@ -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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment