Messages in this thread | | | Date | Fri, 24 Dec 2004 00:21:35 +0100 (CET) | From | Jesper Juhl <> | Subject | Re: [PATCH] AB-BA deadlock between uidhash_lock and tasklist_lock. |
| |
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 ..." :-)
-- Jesper Juhl
- 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/
| |