]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: remove test for duplicate device when setting slot number.
authorNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:00 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:00 +0000 (14:27 +1100)
commit72d478f146ba16845a6b1cdb6d1de349caef7724
tree029598119935d946314857c359ef6f2f68e0b11e
parent880adb70938f40a592954db347e6a4a35e0c72da
md: remove test for duplicate device when setting slot number.

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.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c