All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH v2] ALSA: firewire: Replace tasklet with work
Date: Fri, 11 Sep 2020 18:23:54 +0200	[thread overview]
Message-ID: <s5hh7s4qo2t.wl-tiwai@suse.de> (raw)
In-Reply-To: <20200910114359.GA16550@workstation>

On Thu, 10 Sep 2020 13:43:59 +0200,
Takashi Sakamoto wrote:
> 
> Hi,
> 
> On Wed, Sep 09, 2020 at 06:36:59PM +0200, Takashi Iwai wrote:
> > The tasklet is an old API that should be deprecated, usually can be
> > converted to another decent API.  In FireWire driver, a tasklet is
> > still used for offloading the AMDTP PCM stream handling.  It can be
> > achieved gracefully with a work queued, too.
> > 
> > This patch replaces the tasklet usage in firewire-lib driver with a
> > simple work.  The conversion is fairly straightforward but for the
> > in_interrupt() checks that are replaced with the check using the
> > current_work().
> > 
> > Note that in_interrupt() in amdtp_packet tracepoint is still kept as
> > is.  This is the place that is probed by both softirq of 1394 OHCI and
> > a user task of a PCM application, and the work handling is already
> > filtered in amdtp_domain_stream_pcm_pointer().
> > 
> > Signed-off-by: Takashi Iwai <tiwai@suse.de>
> > ---
> > v1->v2: Drop in_interrupt() conversion in tracepoint
> > 
> >  sound/firewire/amdtp-stream.c | 25 +++++++++++++------------
> >  sound/firewire/amdtp-stream.h |  2 +-
> >  2 files changed, 14 insertions(+), 13 deletions(-)
> 
> The v2 patch looks good to me.
> 
> Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> 
> Thanks for your work!

Thanks for a quick review.  Now I applied it.


Takashi

      reply	other threads:[~2020-09-11 16:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09 16:36 [PATCH v2] ALSA: firewire: Replace tasklet with work Takashi Iwai
2020-09-10 11:43 ` Takashi Sakamoto
2020-09-11 16:23   ` Takashi Iwai [this message]

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=s5hh7s4qo2t.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=o-takashi@sakamocchi.jp \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.