Re: driver core: do not wait unnecessarily in driver_unregister()

From: Greg KH
Date: Mon Apr 02 2007 - 03:28:50 EST


On Sun, Apr 01, 2007 at 08:59:02PM +0000, Linux Kernel Mailing List wrote:
> Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f5ef2abcbeb5b0be23f7cc610a024b2406e3d8e6
> Commit: f5ef2abcbeb5b0be23f7cc610a024b2406e3d8e6
> Parent: 755948cfca16c71b16e8ff4a9d4dd31b1c0bf923
> Author: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>
> AuthorDate: Sun Apr 1 10:54:13 2007 -0700
> Committer: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxxxxxxxx>
> CommitDate: Sun Apr 1 10:54:13 2007 -0700
>
> driver core: do not wait unnecessarily in driver_unregister()
>
> Ingo reported that built-in drivers suffered bootup hangs with certain
> driver unregistry sequences, due to sysfs breakage.
>
> Do the minimal fix for v2.6.21: only wait if the driver is a module.
>
> Acked-by: Ingo Molnar <mingo@xxxxxxx>
> Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

Linus, please revert this patch. It merely papers over the fact that
there is a reference count still around that never gets released. Kay's
patch that Andrew just forwarded to you fixes the real problem, which
other people had noticed and this patch does not fix.

thanks,

greg k-h
-
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/