public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Question] Does the kernel ignore errors writng to disk?
@ 2005-04-27 18:40 mike.miller
  2005-04-27 19:12 ` Richard B. Johnson
  2005-04-28 14:58 ` Alan Cox
  0 siblings, 2 replies; 15+ messages in thread
From: mike.miller @ 2005-04-27 18:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-scsi, brace

Hello All,
I have observed some behavior under certain failure conditions that seems as if the kernel may be ignoring write errors to disk. 
During very heavy read/write io if we force a disk to fail requests continue to be submitted until the controllers queue is full. Ultimately, the requests are timed out by the controller. When this happens we see filesystem corruption. Sometimes it's the file data, other times it's filesystem metadata that has been timed out and failed. Either way its obviously undesirable behavior.
It looks like the OS/filesystem (ext2/3 and reiserfs) does not wait for for a successful completion. Is this assumption correct?

Thanks,
mikem

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [Question] Does the kernel ignore errors writng to disk?
@ 2005-04-28 15:05 Miller, Mike (OS Dev)
  0 siblings, 0 replies; 15+ messages in thread
From: Miller, Mike (OS Dev) @ 2005-04-28 15:05 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel Mailing List, linux-scsi, brace

> -----Original Message-----
> From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk] 
> Sent: Thursday, April 28, 2005 9:58 AM
> To: Miller, Mike (OS Dev)
> Cc: Linux Kernel Mailing List; linux-scsi@vger.kernel.org; 
> brace@hp.com
> Subject: Re: [Question] Does the kernel ignore errors writng to disk?
> 
> On Mer, 2005-04-27 at 19:40, mike.miller@hp.com wrote:
> > It looks like the OS/filesystem (ext2/3 and reiserfs) does 
> not wait for for a successful completion. Is this assumption correct?
> 
> Of course it doesn't. At 250 ops/second for a decent disk no 
> OS waits for completions, all batch and asynchronously queue 
> I/O. See man fsync and also O_DIRECT if you need specific "to 
> disk" support. If you do that be aware that you must also 
> turn write caching off on the IDE disk. I've repeatedly asked 
> the "maintainer" of the IDE layer to do this automatically 
> but gave up bothering long ago. Without that setting users 
> are playing with fire quite honestly.
> 
> The alternative with latest 2.6 stuff is to turn on Jens 
> Axboe's barrier work which seems to give better performance 
> on a drive new enough to have cache flush operations.
> 
> Alan
Thanks, Alan. I'll try Jens barrier.

> 
> 

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-05-01  9:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 18:40 [Question] Does the kernel ignore errors writng to disk? mike.miller
2005-04-27 19:12 ` Richard B. Johnson
2005-04-28 14:58 ` Alan Cox
2005-04-28 18:14   ` Bryan Henderson
2005-04-28 22:43     ` Alan Cox
2005-04-28 23:14       ` Bryan Henderson
2005-04-29  7:25         ` Anton Altaparmakov
2005-04-29 19:11           ` Bryan Henderson
2005-04-29 22:00             ` Alan Cox
2005-04-30  0:41               ` Bryan Henderson
2005-05-01  9:01               ` Mogens Valentin
2005-04-28 23:22   ` Bartlomiej Zolnierkiewicz
2005-04-28 23:50     ` Alan Cox
2005-04-29  0:33       ` Bartlomiej Zolnierkiewicz
  -- strict thread matches above, loose matches on Subject: below --
2005-04-28 15:05 Miller, Mike (OS Dev)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox