[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFzDE8y_K=bcN+7xtLDnF_v-xRe20S+Ws-mhs4CVyUPYOA@mail.gmail.com>
Date: Sat, 2 Jun 2012 16:14:57 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
Cc: Eric Dumazet <eric.dumazet@...il.com>,
Alan Cox <alan@...ux.intel.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Jens Axboe <jaxboe@...ionio.com>
Subject: Re: [PATCH] tty: add lockdep annotations
On Sat, Jun 2, 2012 at 4:02 PM, Alan Cox <alan@...rguk.ukuu.org.uk> wrote:
>
> per ldisc waitqueue is indeed independent. The rest I'll try and check
> but may be Wednesday for a serious check. You could also I guess narrow
> the check by leaving it all passing tty in to the lock function but just
> using the global lock. Might keep the noise down for the 3.6 work too.
Not really possible. The bug fundamentally comes from how the per-tty
locking locks too late - after the lookup - rather than before.
And fixing that to lock in the right place is not possible with the
"pass in the tty" model. Because we don't know what the tty will be.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists