JFFS2 and kupdated

David Woodhouse dwmw2 at infradead.org
Fri May 9 08:46:43 EDT 2003


On Fri, 2003-05-09 at 13:28, Hans_Peter Urbanek wrote:
> Now, as new logs are being written (and older ones are deleted), JFFS2
> at some point has to reuse blocks. I observe occasional delays in
> write system calls which appear to come from waiting for the completion
> of an erase operation. The completion of the erase operation is done
> through the `kupdated', which then wakes the `write' task.
> 
> In order not to wait up to five seconds for `kupdated' to become
> active again, I made a change in `jffs2_do_reserve_space'
> fs/jffs2/nodemgmt.c that wakes `kupdated' immediately and saves these
> seconds. For me this change seems to work. 

I think you'd do better just to call jffs2_erase_pending_blocks()
directly as we are doing anyway in the eCos case. Just remove the ifdef
and everything within the '#else' case, leaving only the call to
jffs2_erase_pending_blocks().


-- 
dwmw2




More information about the linux-mtd mailing list