From: nagalakshmi.nandigama@lsi.com Date: Thu, 1 Dec 2011 02:13:50 +0000 (+0530) Subject: [SCSI] mpt2sas: Do not set sas_device->starget to NULL from the slave_destroy callbac... X-Git-Tag: v3.3-rc1~124^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23edb6e71696a5da9c5f3987d22221e12370dbce;p=pandora-kernel.git [SCSI] mpt2sas: Do not set sas_device->starget to NULL from the slave_destroy callback when all the LUNS have been deleted If the sas_device->starget to NULL from slave_destroy callback for LUN=1 even though LUN=0 exist, results in entire target getting deleted. To resolve the issue, the driver should only set sas_device->starget to NULL when all the LUNS have been deleted from the slave_destroy. Signed-off-by: Nagalakshmi Nandigama Signed-off-by: James Bottomley --- Reading git-diff-tree failed