Possible deadlock and solution

Matthias Andree matthias.andree at gmx.de
Sun Sep 29 17:32:54 CEST 2002


On Fri, 27 Sep 2002, Mark M. Hoffman wrote:

> I'm with Gyepi here.  Locking in order eliminates deadlock.  When there
> are 500 different resources to worry about (like the linux kernel) it's
> impossible to know or enforce the ordering.  Then the "real solution"
> comes into play.  Here, we're talking about two locks - perfect for the
> "academic" solution.

Well, the roll-back-and-retry approach is nothing complex and will work
regardless of future source code changes. If it'd be something overly
complex, then I'd agree, but adding parameters for the locking order is
a maintenance nightmare. Don't do it.



More information about the bogofilter-dev mailing list