From: Dan Williams Date: Fri, 27 Jun 2008 22:31:53 +0000 (+1000) Subject: md: use stripe_head_state in ops_run_io() X-Git-Tag: v2.6.27-rc1~957^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4e5ac0a22e664eecf29249553cf16c2433f5f25;p=pandora-kernel.git md: use stripe_head_state in ops_run_io() From: Dan Williams In handle_stripe after taking sh->lock we sample some bits into 's' (struct stripe_head_state): s.syncing = test_bit(STRIPE_SYNCING, &sh->state); s.expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state); s.expanded = test_bit(STRIPE_EXPAND_READY, &sh->state); Use these values from 's' in ops_run_io() rather than re-sampling the bits. This ensures a consistent snapshot (as seen under sh->lock) is used. Signed-off-by: Dan Williams Signed-off-by: Neil Brown --- Reading git-diff-tree failed