Disk blocks for long periods

David Woodhouse dwmw2 at infradead.org
Wed Aug 7 05:51:44 EDT 2002


joakim.tjernlund at lumentis.se said:
>  Can the JFFS2 layer also use spin_lock() instead of spin_lock_bh()?
> Shold we try not to disable bottom-halves or does it not matter?

Well, the MTD API documentation (in my head) says that the erase completion 
callback may be called in bottom-half context (i.e. from a timer), which is 
why JFFS2 uses spin_lock_bh(). 

I suppose we could change that.

--
dwmw2






More information about the linux-mtd mailing list