]> git.baikalelectronics.ru Git - kernel.git/commit
jffs2: Fix serious write stall due to erase
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Thu, 7 Oct 2010 16:01:44 +0000 (18:01 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 25 Oct 2010 00:06:22 +0000 (01:06 +0100)
commite13dbd645d5923fa5ab497488d4d450ca2d2847c
tree9ba0193e5ba52abe543b12cde711fc061043ad76
parent6b7b302b4c41abd5ad788ae4c892706c5743416d
jffs2: Fix serious write stall due to erase

Drop the alloc_sem before erasing flash in
jffs2_garbage_collect_pass().
Otherwise writes are put on hold until the erase
has finised.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
fs/jffs2/gc.c