From: Subhash Jadavani Date: Thu, 25 Sep 2014 12:32:20 +0000 (+0300) Subject: scsi: don't add scsi_device if its already visible X-Git-Tag: fixes-for-v3.18-merge-window~25^2^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=693ad5ba135d40b1379e40e928123681e2aa2c50;p=pandora-kernel.git scsi: don't add scsi_device if its already visible If LLD has added scsi device (by calling scsi_add_device) before scheduling async scsi_scan_host then scsi_finish_async_scan() will end up calling scsi_sysfs_add_sdev for scsi device which was already added by LLD. This patch fixes this issue by skipping the call to scsi_sysfs_add_sdev() if it's already visible to rest of the kernel. Signed-off-by: Subhash Jadavani Signed-off-by: Dolev Raviv Reviewed-by: Hannes Reinecke Reviewed-by: Martin K. Petersen Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed