alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Arnd Bergmann <arnd@arndb.de>
Cc: John Kacur <jkacur@redhat.com>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	ALSA development <alsa-devel@alsa-project.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/3] sound: push BKL into open functions
Date: Mon, 12 Jul 2010 17:53:32 +0200	[thread overview]
Message-ID: <s5h1vb8pugz.wl%tiwai@suse.de> (raw)
In-Reply-To: <201007111216.36538.arnd@arndb.de>

At Sun, 11 Jul 2010 12:16:36 +0200,
Arnd Bergmann wrote:
> 
> This moves the lock_kernel() call from soundcore_open
> to the individual OSS device drivers, where we can deal
> with it one driver at a time if needed, or just kill
> off the drivers.
> 
> All core components in ALSA already provide
> adequate locking in their open()-functions
> and do not require the big kernel lock, so
> there is no need to add the BKL there.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> On Sunday 11 July 2010 09:15:22 Jaroslav Kysela wrote:
> > I don't see any reason (benefit) to add gotos to these two functions.
> > 
> Sorry, I had removed them and then forgot the git-add before
> creating the emails. Originally, I had two patches, one for
> pushing down the BKL into every sound driver (hence the goto)
> and a second patch to remove the BKL again from all the native
> alsa drivers. If you prefer, I can also give you the separate
> patches, but I figured that since none of the ALSA drivers needs
> the BKL, the combined patch would be better.
> 
> This is the corrected combined version.

Thanks.  I applied now to sound git tree (with a minor fix of
coding-style in sound/oss/au1550_ac97.c).

BTW, do you have an updated patch for native_ioctl conversion wrt
sound/*?


Takashi

  reply	other threads:[~2010-07-12 15:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-10 21:51 [PATCH 0/3] further BKL removal Arnd Bergmann
2010-07-10 21:51 ` [PATCH 3/3] sound: push BKL into open functions Arnd Bergmann
2010-07-11  7:15   ` Jaroslav Kysela
2010-07-11 10:16     ` Arnd Bergmann
2010-07-12 15:53       ` Takashi Iwai [this message]
2010-07-12 17:53         ` [PATCH] sound/oss: convert to unlocked_ioctl Arnd Bergmann
2010-07-12 20:38           ` Takashi Iwai
2010-07-12 21:13             ` Arnd Bergmann

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=s5h1vb8pugz.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=arnd@arndb.de \
    --cc=fweisbec@gmail.com \
    --cc=jkacur@redhat.com \
    --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;
as well as URLs for NNTP newsgroup(s).