Re: Top 10 bugs/warnings for the week of March 23rd, 2008

From: Pavel Machek
Date: Tue May 27 2008 - 07:39:53 EST


On Mon 2008-05-26 12:48:32, Ingo Molnar wrote:
>
> * Theodore Tso <tytso@xxxxxxx> wrote:
>
> > On Mon, May 26, 2008 at 11:39:13AM +0200, Ingo Molnar wrote:
> > > Exactly why is pulling an USB stick considered "stupid"? Last i checked
> > > there was no physical lock preventing users from doing that.
> > >
> > > Sure, pulling a mounted USB stick is inconvenient ... for _us_
> > > kernel developers. But the user really doesnt care and shouldnt
> > > care.
> >
> > Because they could lose data? Because if the kernel wakes up and
> > tries writing to the USB stick right as they pull it out, it could
> > physically damage the flash format? I know, stupid reason... :-)
>
> user can lose data in many other ways, that's not the issue - the issue
> here is something very crutial: the kernel gets confused about a _very_
> common user-triggerable condition.
>
> That confusion must not happen in a modern OS and the kernel should be
> resilient and cope with such external events. And we must not
> deprioritize it with an incorrect "user did something stupid" tag...

Of course unavoidable "data corruption happens when user pulls the
stick without unmounting" has lower priority than, for example "usb
stick stops working randomly when used overnight"?

And we have still bugs of the second class, so yes unexpected pulls do
have lower priority.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/