Re: [PATCH] fix rmmod sbp2 hang in 2.6.7

From: Hugang
Date: Wed Jul 14 2004 - 04:21:16 EST


On Wed, 14 Jul 2004 16:13:57 +0800
Hugang <hugang@xxxxxxxxxxxx> wrote:

| On Wed, 14 Jul 2004 11:48:54 +0800
| Hugang <hugang@xxxxxxxxxxxx> wrote:
|
....
| Sorry, the above patch, can't fix rmmod sbp2 complete,I still got hang when
| rmmod sbp2 in my PowerBook G4 sometimes.
|

This new patch can complete fix the bug. That's really hack. Any comment are
welcome.
--- orig/drivers/base/driver.c
+++ mod/drivers/base/driver.c
@@ -107,8 +107,8 @@
void driver_unregister(struct device_driver * drv)
{
bus_remove_driver(drv);
- down(&drv->unload_sem);
- up(&drv->unload_sem);
+ //down(&drv->unload_sem);
+ //up(&drv->unload_sem);
}


--
Hu Gang / Steve
Linux Registered User 204016
GPG Public Key: http://soulinfo.com/~hugang/hugang.asc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/