[linux-dvb] Re: [PATCH] dvb-core: Fix several locking related
problems.
Mauro Carvalho Chehab
mchehab at infradead.org
Sat Mar 10 10:23:57 CET 2007
Em Sáb, 2007-03-10 às 02:49 +0100, Johannes Stezenbach escreveu:
> On Sun, Mar 04, 2007 at 05:45:54PM +0000, Simon Arlott wrote:
> > Fix several instances of dvb-core functions using mutex_lock_interruptible
> > and returning -ERESTARTSYS where the calling function will either never
> > retry or never check the return value.
> >
> > These cause a race condition with dvb_dmxdev_filter_free and
> > dvb_dvr_release, both of which are filesystem release functions whose
> > return value is ignored and will never be retried. When this happens it
> > becomes impossible to open dvr0 again (-EBUSY) since it has not been
> > released properly.
> >
> > Signed-off-by: Simon Arlott <simon at fire.lp0.eu>
>
> Acked-By: Johannes Stezenbach <js at linuxtv.org>
>
> I can't test this but to me it looks good.
> Mauro, could you please pick it up and keep it in the
> linuxtv.org repository for a while for testing?
Done.
Thanks, Johannes.
--
Cheers,
Mauro
More information about the linux-dvb
mailing list