]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_transport_sas: add destructor for bsg
authorJames Bottomley <James.Bottomley@steeleye.com>
Fri, 20 Jul 2007 16:10:05 +0000 (11:10 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 20 Jul 2007 17:29:07 +0000 (12:29 -0500)
commit735180f72f72b3d9b71793024d07a1642288e465
treecf46848d871cc9a7e8ca9ab662aae313b23467f2
parent37483f244b7db6f6c7535e312e93ae21337c1829
[SCSI] scsi_transport_sas: add destructor for bsg

There's currently no destructor for the bsg components.  If you insert
and remove the module, you see the bsg devices building up and up.  This
patch adds the destructor in the correct place in the transport class so
that the bsg and request queue are removed just before the device
destruction.

Acked-by: FUJITA Tomonori <tomof@acm.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_sas.c
include/scsi/scsi_transport_sas.h