More comments

David Woodhouse dwmw2 at infradead.org
Mon Mar 13 04:15:51 EST 2000


alex at cendio.se said:
>  That means i have to wrap all write and reads in a function that
> loops over the read/write call.

This has to be done somewhere. Where's best - in _every_ device driver or in
only those front ends which attempt non-block-aligned access?


> Hmm, i think i spoke to soon. It would still need some kind of
> locking. How about an explicit read_lock()/read_unlock(). It could
> even use rw_semaphores to allow concurrent reads from several readers.

Yes - that sounds like a good idea.



--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list