SCSI: mpt2sas: Raid 10 Value is showing as Raid 1E in /va/log/messages
commita253c70d2055450420b756fb5a351dc0ece719d4
authorKashyap, Desai <kashyap.desai@lsi.com>
Fri, 7 Aug 2009 14:05:18 +0000 (7 19:35 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:42 +0000 (8 20:33 -0700)
tree24e3e23a690a0f7d2fa6872dd02a4035e0e40959
parent4f2d0e9e2bb51e8de0ac989f3023d8340813b2cc
SCSI: mpt2sas: Raid 10 Value is showing as Raid 1E in /va/log/messages

commit 62727a7ba43c0abf2673e3877079c136a9721792 upstream.

When a volume is activated, the driver will recieve a pair of ir config change
events to remove the foreign volume, then add the native.
In the process of the removal event, the hidden raid componet is removed from
the parent.When the disks is added back, the adding of the port fails becuase
there is no instance of the device in its parent.
To fix this issue, the driver needs to call mpt2sas_transport_update_links()
prior to calling _scsih_add_device. In addition, we added sanity checks on
volume add and removal to ignore events for foreign volumes.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c