]> git.baikalelectronics.ru Git - kernel.git/commit
md: prevent duplicates in bind_rdev_to_array
authorDan Williams <dan.j.williams@intel.com>
Wed, 30 Apr 2008 07:52:32 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:33 +0000 (08:29 -0700)
commit909e2eab8283a585a30a4a2b3ab8d9925236c1f6
tree78bf7c8e2762d5dc07f2b9acb92ef5804ac40f38
parent6b6eac89346e331d198cddc02b96af91e66ee5dc
md: prevent duplicates in bind_rdev_to_array

Found when trying to reassemble an active externally managed array.  Without
this check we hit the more noisy "sysfs duplicate" warning in the later call
to kobject_add.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c