public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthias Schwarzott <zzam@gentoo.org>
To: Patrick Boettcher <patrick.boettcher@desy.de>
Cc: linux-dvb@linuxtv.org,
	Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: RFC - Flexcop Streaming watchdog (VDSB)
Date: Sun, 25 Jan 2009 22:17:08 +0100	[thread overview]
Message-ID: <200901252217.08848.zzam@gentoo.org> (raw)
In-Reply-To: <alpine.LRH.1.10.0901161548460.28478@pub2.ifh.de>

On Freitag, 16. Januar 2009, Patrick Boettcher wrote:

I am looking forward to test your patch.

> There a struct-work-watchdog looking at the number of irq-received while
> having PIDs active in the PID-filter. If no IRQs are received, the
> pid-filter-system is reset.
>
Very good idea.

>
> Before asking to pull the patch I'd like to discuss an issue: my
> work-around is iterating over the pid-filter-list in the dvb_demux. I'm
> doing this in the struct-work-callback. In dvb_demux.c I see that this
> list is protected with a spinlock. When I now try to take the spinlock in
> the work-function I'll get a nice message saying, that I cannot do take a
> spinlock in a work-function.
>

> What can I do? What is the proper way to protect access to this list? Is
> it needed at all?

I thought this is a perfectly legetimate usage of spinlocks. What is the exact 
wording of the message. Is it a message of lockdep, or another kind of 
message?

Does it get better using spin_lock_irqsave instead of spin_lock_irq ?

Regards
Matthias

  parent reply	other threads:[~2009-01-25 21:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-16 15:03 RFC - Flexcop Streaming watchdog (VDSB) Patrick Boettcher
2009-01-16 18:39 ` [linux-dvb] " AlexW
2009-01-16 23:40   ` BOUWSMA Barry
2009-01-17  8:29     ` Patrick Boettcher
2009-01-17 10:50       ` BOUWSMA Barry
2009-01-17 12:36         ` BOUWSMA Barry
2009-01-17 13:18       ` Andy Walls
2009-01-17 18:28       ` Luca Olivetti
2009-01-17  3:37 ` Andy Walls
2009-01-25 21:17 ` Matthias Schwarzott [this message]
2009-01-26 15:05   ` Patrick Boettcher
2009-02-09 15:13   ` Patrick Boettcher
2009-04-25 16:08 ` [linux-dvb] " BOUWSMA Barry
2009-04-25 17:21   ` Luca Olivetti
2009-05-07 11:53     ` BOUWSMA Barry

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=200901252217.08848.zzam@gentoo.org \
    --to=zzam@gentoo.org \
    --cc=linux-dvb@linuxtv.org \
    --cc=linux-media@vger.kernel.org \
    --cc=patrick.boettcher@desy.de \
    /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