lkml.org 
[lkml]   [2001]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC (patch below) Re: ide drive problem?
> This is an error that I am considering removing form the user's view.
> For the very fact/reason you are pointing out; however, it becomse
> more painful when performing error sorting.

yes, most of the time, the warning scares people unnecessarily.
but if the machine is seeing lots of CRC failures, there should
definitely be some prominent messages. perhaps something simple
like producing a warning if more than a few of recent IOs
have had CRC problems:

int crcState = 0;

on successful IO:
crcState >>= 1;

on CRC failure:
if (crcState)
printk("dang, CRC failed on hda, see http://whatever");
crcState = 1 << 10;
so if >10 IOs succeed between CRC failures, there's no warning.
(uh, I guess that would actually be 9, since presumably the retry
would succeed...) keeping a global count of CRC failures would be
kind of nice, too.

regards, mark hahn.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:03    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site