Re: bttv hang problem on 2.6.8

From: Lennert Buytenhek
Date: Mon Oct 25 2004 - 11:49:10 EST


On Mon, Oct 25, 2004 at 05:18:41PM +0200, Gerd Knorr wrote:

> > When there is a background thread doing VIDIOCSYNC in a loop, issuing
> > VIDIOCSPICT in the current thread on the same file descriptor causes
> > it to go into uninterruptable sleep and hang. This is on kernel 2.6.8
> > using the bttv driver, and appears easily reproducible.
>
> Don't do that. bttv serializes ioctls with a lock. Well, not all of
> them, but the ones which change the state of the filehandle, and both
> VIDIOCSYNC + VIDIOCSPICT fall into that group. You simply can't run
> them in parallel on the same filehandle.

OK, even though it worked fine on 2.4 I'll buy that, but it still
shouldn't result in an unkillable process, should it?


cheers,
Lennert
-
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/