beginner question about cfi_spin_lock()

Linh Dang linhd at nortelnetworks.com
Tue Aug 10 23:24:13 EDT 2004



why the struct flchip must be protected with:

        - local_bh_disable()
        - preempt_disable()
        - spin_lock()

isn't that a bit overkill? Won't a mutex (semaphore) be sufficient?


Thanx

-- 
Linh Dang




More information about the linux-mtd mailing list