Please sign in to comment.
ahci: fix module refcount breakage introduced by libahci split
commit fad16e7 upstream. libata depends on scsi_host_template for module reference counting and sht's should be owned by each low level driver. During libahci split, the sht was left with libahci.ko leaving the actual low level drivers not reference counted. This made ahci and ahci_platform always unloadable even while they're being actively used. Fix it by defining AHCI_SHT() macro in ahci.h and defining a sht for each low level ahci driver. stable: only applicable to 2.6.35. Signed-off-by: Tejun Heo <firstname.lastname@example.org> Reported-by: Pedro Francisco <email@example.com> Tested-by: Michael Tokarev <firstname.lastname@example.org> Signed-off-by: Jeff Garzik <email@example.com> Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>
- Loading branch information...
Showing with 24 additions and 14 deletions.