From: Tejun Heo Date: Wed, 31 May 2006 09:27:40 +0000 (+0900) Subject: [PATCH] libata-hp-prep: store attached SCSI device X-Git-Tag: v2.6.18-rc1~1079^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3edebac41bab7e146578ad9e723ee7fff71c99c0;p=pandora-kernel.git [PATCH] libata-hp-prep: store attached SCSI device Add device persistent field dev->sdev and store the attached SCSI device. With hotplug, libata needs to know the attached SCSI device to offline and detach it, but scsi_device_lookup() cannot be used because libata will reuse SCSI ID numbers - dead but not gone devices (due to zombie opens, etc...) interfere with the lookup. dev->sdev doesn't hold reference to the SCSI device. It's cleared when the SCSI device goes away. Signed-off-by: Tejun Heo --- Reading git-diff-tree failed