diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-04-18 19:43:15 +0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-23 00:16:32 +0400 |
commit | 93c20a59af4624aedf53f8320606b355aa951bc1 (patch) | |
tree | 9d17e23f66e4db98171f7342f3ddf27af9664b49 /drivers/acpi/system.c | |
parent | 97f46ae45c70857e459b7f8df1fc2807e7bd90a9 (diff) | |
download | linux-93c20a59af4624aedf53f8320606b355aa951bc1.tar.xz |
[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 <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/acpi/system.c')
0 files changed, 0 insertions, 0 deletions