Files
twx-linux/fs
Artem Bityutskiy b0afbbec49 [JFFS2] fix deadlock on error path
When the MTD driver returns write failure, the following deadlock
occurs:

We are in __jffs2_flush_wbuf(), we hold &c->wbuf_sem. Write failure.
jffs2_wbuf_recover()->jffs2_reserve_space_gc()->jffs2_do_reserve_space()
->jffs2_erase_pending_blocks()->jffs2_flash_read()

and it tries to lock &c->wbuf_sem again. Deadlock.

Reported-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-04-17 13:53:51 -04:00
..
2007-02-20 17:10:15 -08:00
2007-04-17 13:53:51 -04:00
2007-02-17 19:23:03 +01:00
2007-02-20 17:10:13 -08:00
2007-03-06 09:30:25 -08:00
2007-02-17 16:10:59 -05:00
2007-02-17 21:30:15 -05:00