public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lennert Buytenhek <buytenh@wantstofly.org>
To: Gerd Knorr <kraxel@bytesex.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: bttv hang problem on 2.6.8
Date: Mon, 25 Oct 2004 18:01:45 +0200	[thread overview]
Message-ID: <20041025160145.GA23760@xi.wantstofly.org> (raw)
In-Reply-To: <20041025151841.GA10042@bytesex>

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

  reply	other threads:[~2004-10-25 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 15:03 bttv hang problem on 2.6.8 Lennert Buytenhek
2004-10-25 15:18 ` Gerd Knorr
2004-10-25 16:01   ` Lennert Buytenhek [this message]
2004-10-25 20:53     ` Gerd Knorr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041025160145.GA23760@xi.wantstofly.org \
    --to=buytenh@wantstofly.org \
    --cc=kraxel@bytesex.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox