[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <412bdbff0805271226t41fe55b0jd0b8e3c737f34734@mail.gmail.com>
Date: Tue, 27 May 2008 15:26:27 -0400
From: "Devin Heitmueller" <devin.heitmueller@...il.com>
To: "Mauro Carvalho Chehab" <mchehab@...radead.org>
Cc: "Jonathan Corbet" <corbet@....net>, "Alan Cox" <alan@...hat.com>,
video4linux-list@...hat.com, linux-kernel@...r.kernel.org,
"Alan Cox" <alan@...rguk.ukuu.org.uk>
Subject: Re: [PATCH] video4linux: Push down the BKL
Hello Mauro,
On Tue, May 27, 2008 at 2:59 PM, Mauro Carvalho Chehab
<mchehab@...radead.org> wrote:
> For example, em28xx has already a lock at the operations that change values at
> "dev" struct, including open() method. However, since the lock is not called at
> get operations, it needs to be fixed. I would also change it from mutex to a
> read/write semaphore, since two (or more) get operations can safely happen in
> parallel.
Please bear in mind that we have not worked out the locking semantics
for hybrid tuner devices, and it's entirely possible that the get()
routines will need to switch the tuner mode, which would eliminate any
benefits of converting to a read/write semaphore.
I'm not sure yet exactly how that's going to work, but it's something
that might prompt you to defer converting it from a mutex until we
have that worked out.
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
--
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