lkml.org 
[lkml]   [2004]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.039 / U:23.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site