Re: [PATCH] AB-BA deadlock between uidhash_lock and tasklist_lock.
From: Jesper Juhl
Date: Thu Dec 23 2004 - 18:14:37 EST
On Thu, 23 Dec 2004, Andrew Morton wrote:
> + * uidhash_lock is taken inside write_lock_irq(&tasklist_lock). If a timer
> + * interrupt were to occur while we hold uidhash_lock, and that interrupt takes
> + * read_lock(&tasklist_lock) then we have an ab/ba deadlock scenario. Hence
> + * uidhash_lock must always be taken in an ir-qsafe manner to hold off the
> + * timer interrupt.
> + */
Miniature nit: You write "... ir-qsafe manner ...", I'm fairly certain you
mean "... irq-safe manner ..." :-)
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/