From: FUJITA Tomonori Date: Fri, 18 Apr 2008 15:43:15 +0000 (+0900) Subject: [SCSI] scsi_transport_sas: fix the lifetime of sas bsg objects X-Git-Tag: v2.6.26-rc1~1027^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c20a59af4624aedf53f8320606b355aa951bc1;p=pandora-kernel.git [SCSI] scsi_transport_sas: fix the lifetime of sas bsg objects scsi_transport_sas calls blk_cleanup_queue too early for bsg queues. If a user holds a sas_host, end_device, or expander device open, remove the device, then send a request to it, we get a kernel crash. We need to call blk_cleanup_queue in the release callback as we do with scsi devices. This patch moves blk_cleanup_queue to sas_expander_release and sas_end_device_release from sas_bsg_remove. sas_host can't use the release callback in struct device so use bsg's release callback. Signed-off-by: FUJITA Tomonori Signed-off-by: James Bottomley --- Reading git-diff-tree failed