Re: [Patch] fix MTD CFI/LPDDR flash driver huge latency bug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefani Seibold
Date: Saturday, March 13, 2010 - 10:00 am

Am Samstag, den 13.03.2010, 06:25 -0500 schrieb Andrew Morton:

Okay, i didn't checked that case. But the old code has also a dead lock,
if the oops occurred during the spinlock(xxx->mutex) was held. With the
new mutex solution the change is bigger to run into that deadlock due
the possible preemption. 

But i did a "grep" at the whole mtd code and there is no panic_write
function assigned to mtd_info struct for the CFI flash chips. So this
problem will currently never occure.


Concurrent access are dangerous and in most cases are not possible,
that's why the spinlock(xxxx->mutex) was for.

I also did some concurrency checks like:

cat /dev/zero >/flash/aa & cat /dev/zero >/flash/bb

without and side effects.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Patch] fix MTD CFI/LPDDR flash driver huge latency bug, Stefani Seibold, (Sat Mar 6, 9:48 am)
Re: [Patch] fix MTD CFI/LPDDR flash driver huge latency bug, Stefani Seibold, (Sat Mar 13, 5:31 am)
Re: [Patch] fix MTD CFI/LPDDR flash driver huge latency bug, Stefani Seibold, (Sat Mar 13, 5:35 am)
Re: [Patch] fix MTD CFI/LPDDR flash driver huge latency bug, Stefani Seibold, (Sat Mar 13, 10:00 am)
Re: [Patch] fix MTD CFI/LPDDR flash driver huge latency bug, Stefani Seibold, (Sun Mar 14, 11:15 pm)
Re: [Patch] fix MTD CFI/LPDDR flash driver huge latency bug, David Woodhouse, (Fri Mar 19, 1:29 am)