Re: [PATCH] dvb-core: Fix several locking related problems.

From: Mauro Carvalho Chehab
Date: Sat Mar 10 2007 - 04:24:37 EST


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@xxxxxxxxxxx>
>
> Acked-By: Johannes Stezenbach <js@xxxxxxxxxxx>
>
> 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/