login
Header Space

 
 

Re: [PATCH] mtd/chips: add missing set_current_state() to cfi_{amdstd,staa}_sync()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-mtd@...>, <dwmw2@...>, <linux-kernel@...>
Date: Tuesday, April 8, 2008 - 4:21 am

On 08/04/2008, Andrew Morton <akpm@linux-foundation.org> wrote:

It has been tested with an oldish 2.6.8.1 where the problem initially
occured. It was a RT task that happened to close an mtd fd (and
resulting in ->sync() being called) and ran in the middle of the
->erase op... resulting in a "nice" endless loop.

The versions of cfi_{amdstd,staa}_sync() in the mainline look not that
much different from the respective versions in 2.6.8.1.

I guess, it went unnoticed for so long time due to :

(1) apps. don't often directly open/close() fd for mtd partitions;
(2) a race against ->erase() (or smth else) is rare;
(3) if (1) is not true, then an app. is still unlikely to be RT (in
which case, a task just loops until its timeslice is gone).



-- 
Best regards,
Dmitry Adamushko
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] mtd/chips: add missing set_current_state() to cf..., Dmitry Adamushko, (Tue Apr 8, 4:21 am)
speck-geostationary