public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* Drive reset as an EH strategy when write cache is enabled
@ 2020-12-01 17:24 Phillip Susi
  2020-12-02 15:03 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Phillip Susi @ 2020-12-01 17:24 UTC (permalink / raw)
  To: linux-ide

A while back I noticed lines in my syslog indicating that a FLUSH CACHE
command timed out and the drive was hard reset to recover.  That made me
wonder if such a thing makes any sense as a valid EH strategy.  Any
previous writes that returned successfully but are still sitting in the
drive's write cache will be silently invalidated by resetting the drive
won't they?  Then the FLUSH CACHE command is retried, and of course,
succeeds because it is now a NOOP.  Then fsync() returns and postfix
thinks my new email has been committed to the disk, when in fact, it has
not.

Am I mistaken somewhere or is the kernel really doing the wrong thing
here?

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

end of thread, other threads:[~2020-12-02 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-01 17:24 Drive reset as an EH strategy when write cache is enabled Phillip Susi
2020-12-02 15:03 ` Christoph Hellwig
2020-12-02 15:55   ` Phillip Susi
2020-12-02 18:58     ` James Bottomley
2020-12-02 22:11       ` Phillip Susi

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