• N
    md/raid10: some tidying up in fix_read_error · 7c4e06ff
    NeilBrown 提交于
    Currently the rdev on which a read error happened could be removed
    before we perform the fix_error handling.  This requires extra tests
    for NULL.
    
    So delay the rdev_dec_pending call until after the call to
    fix_read_error so that we can be sure that the rdev still exists.
    
    This allows an 'if' clause to be removed so the body gets re-indented
    back one level.
    Signed-off-by: NNeilBrown <neilb@suse.de>
    7c4e06ff
raid10.c 65.5 KB