[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170627215804.GD5250@amd>
Date: Tue, 27 Jun 2017 23:58:04 +0200
From: Pavel Machek <pavel@....cz>
To: Theodore Ts'o <tytso@....edu>, Andreas Dilger <adilger@...ger.ca>,
Khazhismel Kumykov <khazhy@...gle.com>,
adilger.kernel@...ger.ca, linux-ext4@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ext4: Return EIO on read error in ext4_find_entry
Hi!
> > >> Previously, a read error would be ignored and we would eventually return
> > >> NULL from ext4_find_entry, which signals "no such file or directory". We
> > >> should be returning EIO.
> > >>
> > >> Signed-off-by: Khazhismel Kumykov <khazhy@...gle.com>
> > >
> > > Thanks, applied.
> >
> > I don't necessarily agree that this is an improvement.
> >
> > If the requested entry is not in the bad block, this will return an
> > error even if the file name could be found in another block. It
> > would be better to save the error until the end and only return -EIO
> > if the entry cannot be found.
>
> The problem is that if we continue, successive reads may all take
> seconds or minutes to fail, thus tieing up the process for a long
> time. If this process happens to be, say, the node's Kubernetes
> management server it can take down the entire node (since if there
...
> By returning EIO right away, we can "fast fail".
Well, OTOH if I have a bad flash, and get EIO trying to read
~/my-disertation-thesis.tex because ~/.emacs could not be read... I'll be
quite unhappy.
Yes, fast fail is nice when you have redundant machines, but can be a
problem otherwise.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)
Powered by blists - more mailing lists