]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: remove test for duplicate device when setting slot number.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:05 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:05 +0000 (11:32 +1100)
commit3908f3567a9748f9e73b43458be3ae9cb1cfb5b2
treeb25fe5f0fd3f45a37cab8fbb8374d3e09c307ee0
parent733cfef05c8761dbb95d7a0e0736e9c8b7a88a27
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