Re: [RFC] aic94xx: attaching to the sas transport class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ran into a issue that on the first load I did not have the
attach_HostRAID=1 that I need for my model of card so when I went to do a
modprobe -r; modprobe I got an oops. The patch below helps with the
describe case, but does not fix the problem of not being able to unload if
devices are found.

-andmike
--
Michael Anderson
andmike@xxxxxxxxxx

 drivers/scsi/sas/sas_init.c |    2 ++
 1 files changed, 2 insertions(+)

Index: sas-2.6-patched/drivers/scsi/sas/sas_init.c
===================================================================
--- sas-2.6-patched.orig/drivers/scsi/sas/sas_init.c	2006-03-03 00:07:04.000000000 -0800
+++ sas-2.6-patched/drivers/scsi/sas/sas_init.c	2006-03-05 23:26:21.000000000 -0800
@@ -145,6 +145,8 @@ static int __init sas_class_init(void)
 
 static void __exit sas_class_exit(void)
 {
+	if (sas_transport_template)
+		sas_release_transport(sas_transport_template);
 	if (sas_task_cache)
 		kmem_cache_destroy(sas_task_cache);
 }
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux