Re: recursive spinlocks. Shoot.

From: Arjan van de Ven (arjanv@redhat.com)
Date: Mon May 19 2003 - 08:47:20 EST


On Mon, 2003-05-19 at 15:37, Peter T. Breuer wrote:
> "David Woodhouse wrote:"
> > To be honest, if any programmer is capable of committing this error and
> > not finding and fixing it for themselves, then they're also capable, and
> > arguably _likely_, to introduce subtle lock ordering discrepancies which
> > will cause deadlock once in a blue moon.
> >
> > I don't _want_ you to make life easier for this hypothetical programmer.
> >
> > I want them to either learn to comprehend locking _properly_, or take up
> > gardening instead.
>
> Let's quote the example from rubini & corbet of the sbull block device
> driver. The request function ends like so:

defective locking in a driver is no excuse to pamper over it with
recusrive shite.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:34 EST