• D
    md: use stripe_head_state in ops_run_io() · c4e5ac0a
    Dan Williams 提交于
    From: Dan Williams <dan.j.williams@intel.com>
    
    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: NDan Williams <dan.j.williams@intel.com>
    Signed-off-by: NNeil Brown <neilb@suse.de>
    c4e5ac0a
raid5.c 137.3 KB