All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rui Nuno Capela <rncbc@rncbc.org>
To: Karsten Wiese <annabellesgarden@yahoo.de>
Cc: Takashi Iwai <tiwai@suse.de>, alsa-devel@lists.sourceforge.net
Subject: Re: USX2Y 2.6.20-rt2 Oops on disconnect [SOLVED]
Date: Wed, 07 Feb 2007 00:54:23 +0000	[thread overview]
Message-ID: <45C9233F.6030405@rncbc.org> (raw)
In-Reply-To: <200702052327.06365.annabellesgarden@yahoo.de>

Karsten Wiese wrote:
> Am Montag, 5. Februar 2007 22:46 schrieb Rui Nuno Capela:
>> Hi Karsten,
>>
>> I'm having this kernel oops right on disconnecting my US-224. Probably it
>> has been creeping around before, but only now I had the opportunity to
>> report.
>>
>> ...
> 
> hm, just pulled the usb-cable off my us428 twice with nothing in dmesg.
> Under jackd working.
> Which is the way to reproduce this?
> As a shot in the dark, please try the attached patch.
> Should be correct anyhow ;-)
> 
> ...
> Hi Takashi,
> 
> had some oopses here running -rt kernels,
> which vanished after applying this.
> 
>       Karsten
> ------------------------------------------------------------------- 
> snd_hwdep_release() racefix
> 
> 
> snd_card_file_remove() can free the snd_card.
> Touch hw->* only before calling snd_card_file_remove().
> 
> Unrelated: Allow hwdep devices not to have own ops.release();
> 
> 
> Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
> 
> 
> --- /alsa-kernel/core/hwdep.c_	2007-01-30 20:32:01.000000000 +0100
> +++ /alsa-kernel/core/hwdep.c	2007-01-30 20:32:01.000000000 +0100
> @@ -156,15 +156,16 @@
>  	int err = -ENXIO;
>  	struct snd_hwdep *hw = file->private_data;
>  	struct module *mod = hw->card->module;
> +
>  	mutex_lock(&hw->open_mutex);
> -	if (hw->ops.release) {
> +	if (hw->ops.release)
>  		err = hw->ops.release(hw, file);
> -		wake_up(&hw->open_wait);
> -	}
>  	if (hw->used > 0)
>  		hw->used--;
> -	snd_card_file_remove(hw->card, file);
>  	mutex_unlock(&hw->open_mutex);
> +	wake_up(&hw->open_wait);
> +
> +	snd_card_file_remove(hw->card, file);
>  	module_put(mod);
>  	return err;
>  }
> 

OK. Karsten's patch (snd_hwdep_release-racefix.diff) applied. Oops no
more, at least on this early reported machine. I've just missed that one
before and assumed it was already present on the -rt patchset (as was
the OHCI fix).

Make me wait no longer. Make it through 2.6.21 merge window too, please?

Cheers.
-- 
rncbc aka Rui Nuno Capela
rncbc@rncbc.org

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

  parent reply	other threads:[~2007-02-07  0:54 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05  6:56 v2.6.20-rt1, yum/rpm Ingo Molnar
2007-02-05  9:18 ` Serge Belyshev
2007-02-05  9:02   ` Ingo Molnar
2007-02-05 10:36 ` Sunil Naidu
2007-02-05 10:42   ` Peter Zijlstra
2007-02-05 10:22     ` Ingo Molnar
2007-02-05 11:15     ` Sunil Naidu
2007-02-05 12:59 ` Michal Piotrowski
2007-02-05 13:47   ` Ingo Molnar
2007-02-05 21:29     ` Michal Piotrowski
2007-02-05 14:25 ` Karsten Wiese
2007-02-05 21:46   ` USX2Y 2.6.20-rt2 Oops on disconnect Rui Nuno Capela
2007-02-05 22:27     ` Karsten Wiese
2007-02-06 11:53       ` Takashi Iwai
2007-02-07  0:54       ` Rui Nuno Capela [this message]
2007-02-07 10:26         ` USX2Y 2.6.20-rt2 Oops on disconnect [SOLVED] Takashi Iwai
2007-02-10  1:29   ` us428control 0.4.5 [RFC] Rui Nuno Capela
2007-02-10 15:37     ` Rui Nuno Capela
2007-02-13 16:07       ` Q: How to detect which USx2y is connected? Rui Nuno Capela
2007-02-13 17:36         ` Karsten Wiese
2007-02-13 17:47           ` Karsten Wiese
2007-02-13 17:48           ` Takashi Iwai
2007-02-13 18:08             ` Rui Nuno Capela
2007-02-13 18:13               ` Rui Nuno Capela
2007-02-13 19:03               ` Karsten Wiese
2007-02-13 21:01                 ` Rui Nuno Capela
2007-02-14 12:59                   ` Takashi Iwai
2007-02-14 14:30                     ` Rui Nuno Capela
2007-02-14 14:36                       ` Takashi Iwai
2007-02-14 14:57                         ` Rui Nuno Capela
2007-02-14 15:01                           ` Takashi Iwai
2007-02-14 15:08                             ` Rui Nuno Capela
2007-02-14 22:43       ` [PATCH] us428control 0.4.5 Rui Nuno Capela
2007-02-14 23:23         ` Takashi Iwai
2007-02-16 17:13       ` [PATCH] us428control 0.4.6 Rui Nuno Capela
2007-02-16 17:46         ` Takashi Iwai
2007-02-05 15:17 ` v2.6.20-rt1, yum/rpm Parag Warudkar
2007-02-05 21:50 ` Michal Piotrowski
2007-02-06  0:11 ` Michal Piotrowski
2007-02-06  1:14 ` Daniel Walker
2007-02-06 10:05 ` Pre-packaged version Alessio Igor Bogani
2007-02-06 10:10 ` v2.6.20-rt1, yum/rpm Arjan van de Ven
2007-02-07 12:32   ` Ingo Molnar
2007-02-06 10:30 ` Sunil Naidu
2007-02-06 19:38 ` Chuck Harding
2007-02-06 20:08   ` K.R. Foley
2007-02-27 17:39 ` K.R. Foley
2007-02-28  8:11   ` Ingo Molnar
2007-02-28 10:16     ` K.R. Foley
2007-04-26 13:57 ` v2.6.21-rt1 Ingo Molnar
2007-04-26 20:53   ` v2.6.21-rt1 Free Ekanayaka
2007-05-03 19:16   ` v2.6.21-rt1 - bug in asm-mips/atomic.h Tim Bird
2007-05-03 19:35     ` v2.6.21-rt1 - mips compile bugs Tim Bird
2007-05-17 18:46   ` v2.6.21-rt1 emin ak

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=45C9233F.6030405@rncbc.org \
    --to=rncbc@rncbc.org \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=annabellesgarden@yahoo.de \
    --cc=tiwai@suse.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 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.