Skip to contentSkip to conversation

beginner question about cfi_spin_lock()

DISCUSSION Linh Dang 1 participant 1 message Aug 11, 2004 Memory technology devices (MTD)

lore
Share & tools
lore

Linh Dang

author
#0 lore raw

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

Signature · 1 line
Linh Dang