Re: ATA FLUSHCACHE

From: Daniel O'Connor <doconnor_at_gsoft.com.au>
Date: Tue, 24 Apr 2007 15:54:11 +0930
On Tuesday 24 April 2007 14:44, William Josephson wrote:
> I've recently installed -CURRENT on a new machine after the
> LCD in my old one died.  I now have ZFS running as the root
> filesystem.  The result is very pleasant if a little slow,
> although that may be my disk.  I have noticed a fair number
> of messages of the form ``ATA - FLUSHCACHE timed out'' while
> running with ZFS.  Is this expected behavior when running on
> the bare metal?

I see this when using gjournal too.

I suspect the timeout on the flush cache command needs to be increased. 
I haven't got around to testing it but you could try increasing the 
timeout in ata-disk.c (around line 280) ->
    case BIO_FLUSH:
        request->u.ata.lba = 0;
        request->u.ata.count = 0;
        request->u.ata.feature = 0;
        request->bytecount = 0;
        request->transfersize = 0;
        request->timeout = 1;
        request->retries = 0;
        request->flags = ATA_R_CONTROL;
        request->u.ata.command = ATA_FLUSHCACHE;
        break;

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Received on Tue Apr 24 2007 - 04:47:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:09 UTC