• NeilBrown's avatar
    md: remove test for duplicate device when setting slot number. · 476a7abb
    NeilBrown authored
    When setting the slot number on a device in an active array we
    currently check that the number is not already in use.
    We then call into the personality's hot_add_disk function
    which performs the same test and returns the same error.
    
    Thus the common test is not needed.
    
    As we will shortly be changing some personalities to allow duplicates
    in some cases (to support hot-replace), the common test will become
    inconvenient.
    
    So remove the common test.
    Reviewed-by: default avatarDan Williams <dan.j.williams@intel.com>
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    476a7abb
md.c 214 KB