Re: [PATCH 2/2] module: fix bne2 "gave up waiting for init of modulelibcrc32c"

From: Linus Torvalds
Date: Wed Jun 02 2010 - 00:37:04 EST




On Wed, 2 Jun 2010, Rusty Russell wrote:
>
> > I would like to note that your original "fix things by dropping the lock"
> > patch that I hated so much had this exact bug too. Making this a good
> > example of _why_ it's basically always wrong to drop locks in the middle -
> > even if you claimed you knew and understood the locking.
>
> And I would like to note that it didn't :) It grabbed references only on
> completed modules.

Right you are, I misread the patch. You re-did the whole module lookup,
something that the original code didn't do. And yes, that should be safe.

Linus
--
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/