]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (9264): MFE: bugfix: multi-frontend mutual exclusion parallel open
authorDarron Broad <darron@kewl.org>
Wed, 15 Oct 2008 16:37:59 +0000 (13:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 17 Oct 2008 20:28:22 +0000 (17:28 -0300)
commit10ee3d04346c7de16da8b5195d075b0291254b13
treef302b75e9c1e8827ec491bdc82aebe47c0773d27
parent75d027b0f86d41ec69ecf60355b5a26503359535
V4L/DVB (9264): MFE: bugfix: multi-frontend mutual exclusion parallel open

When moving from one frontend to another
an application could spawn multiple threads opening
the same new frontend and in some circumstances all of
these could become delayed waiting for the previous
frontend readers or previous frontend writer thread to
complete.

In this scenario the first thread will succeed on open
to bring the new frontend online but any others will return
EBUSY. This is a fault.  If the first succeeds and all others
are on the same frontend then they should succeed also.

Signed-off-by: Darron Broad <darron@kewl.org>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c