Re: [md PATCH 06/34] md/raid5: Remove use of sh->lock in sync_request

Started by Namhyung Kim on Jul 22, 2011

open the first message on its own page

Message details and related content
NeilBrown [off-list ref] writes:
This is the start of a series of patches to remove sh->lock.

sync_request takes sh->lock before setting STRIPE_SYNCING to ensure
there is no race with testing it in handle_stripe[56].

Instead, use a new flag STRIPE_SYNC_REQUESTED and test it early
in handle_stripe[56] (after getting the same lock) and perform the
same set/clear operations if it was set.

Signed-off-by: NeilBrown <redacted>
Reviewed-by: Namhyung Kim <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help