• N
    md/raid5: flush out all pending requests before proceeding with reshape. · 4d77e3ba
    NeilBrown 提交于
    Some requests - particularly 'discard' and 'read' are handled
    differently depending on whether a reshape is active or not.
    
    It is harmless to assume reshape is active if it isn't but wrong
    to act as though reshape is not active when it is.
    
    So when we start reshape - after making clear to all requests that
    reshape has started - use mddev_suspend/mddev_resume to flush out all
    requests.  This will ensure that no requests will be assuming the
    absence of reshape once it really starts.
    Signed-off-by: NNeilBrown <neilb@suse.de>
    4d77e3ba
raid5.c 188.9 KB