Hi Latency in do_read_onechip (was Re: Bottom halves being disabled)

Linh Dang linhd at nortelnetworks.com
Thu Sep 9 14:12:19 EDT 2004


Hi David,

On our system, we have some slow AMD nor flash. The line

	map_copy_from(map, buf, adr, len);

in do_read_onechip (in cfi_cmdset_0002.c) is called while holding a
spin_lock (chip->mutex). This triggers 450usec non-preemptible periods
on our system.

1. Is there any plan to fix this?
2. Is it safe to replace the spin_lock with a semaphore?
3. while mtd has to lock softirq?

Thanx

-- 
Linh Dang




More information about the linux-mtd mailing list