• N
    md/raid5: use seqcount to protect access to shape in make_request. · c46501b2
    NeilBrown 提交于
    make_request() access various shape parameters (raid_disks, chunk_size
    etc) which might be changed by raid5_start_reshape().
    
    If the later is called at and awkward time during the form, the wrong
    stripe_head might be used.
    
    So introduce a 'seqcount' and after finding a stripe_head make sure
    there is no reason to expect that we got the wrong one.
    Signed-off-by: NNeilBrown <neilb@suse.de>
    c46501b2
raid5.h 20.7 KB