Re: [PATCH 001 of 9] md: Fix deadlock in md/raid1 and md/raid10 when handling a read error.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andre Noll <maan@...>
Cc: Andrew Morton <akpm@...>, <linux-raid@...>, <linux-kernel@...>, K.Tanaka <k-tanaka@...>
Date: Tuesday, March 4, 2008 - 2:08 am

On Monday March 3, maan@systemlinux.org wrote:

Thanks for looking.


Maybe... If I write a memory location inside a spinlock, then after
the spinlock is dropped, I read that location on a different CPU,
am I always guaranteed to see the new value? or do I need some sort of
memory barrier?
If I could be clear on that (and memory-barriers.txt isn't
helping... maybe if I read it 7 more times) then we probably could
make the change you suggest.
???


Not really.
The "conf_t" in each case is a very different conf_t that just happens
to have the same name and some common fields.
There is actually quite a lot of structural similarity between raid1
and raid10, but I don't think there is much to be gained by trying to
share code there.

Thanks,
NeilBrown
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 001 of 9] md: Fix deadlock in md/raid1 and md/rai..., Neil Brown, (Tue Mar 4, 2:08 am)