From: Alan Stern Date: Fri, 4 Nov 2005 19:44:41 +0000 (-0500) Subject: [SCSI] sd: Fix refcounting X-Git-Tag: v2.6.15-rc1~723^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39b7f1e25a412b0ef31e516cfc2fa4f40235f263;p=pandora-kernel.git [SCSI] sd: Fix refcounting Currently the driver takes a reference only for requests coming by way of the gendisk, not for requests coming by way of the struct device or struct scsi_device. Such requests can arrive in the rescan, flush, and shutdown pathways. The patch also makes the scsi_disk keep a reference to the underlying scsi_device, and it erases the scsi_device's pointer to the scsi_disk when the scsi_device is removed (since the pointer should no longer be used). This resolves Bugzilla entry #5237. Signed-off-by: Alan Stern Signed-off-by: James Bottomley --- Reading git-diff-tree failed