mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "R. J. Wysocki" <rjwysocki@sisk.pl>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.7-mm6: system hang with KAMix on dual Opteron w/ NUMA
Date: Thu, 8 Jul 2004 23:50:52 +0200	[thread overview]
Message-ID: <200407082350.52483.rjwysocki@sisk.pl> (raw)
In-Reply-To: <20040708142153.60c2cb69.akpm@osdl.org>

On Thursday 08 of July 2004 23:21, Andrew Morton wrote:
> "R. J. Wysocki" <rjwysocki@sisk.pl> wrote:
> >  I've just discovered that I'm (consistently) able to hang the system
> > solid by trying to adjust the sound volume using KAMix on 2.6.7-mm6 (SuSE
> > 9.1/ AMD64).
>
> Please ensure that your kernel has this patch:
>
> --- 25/sound/core/control.c~snd_ctl_read-locking-fix-fix	2004-07-06
> 21:27:51.618683360 -0700 +++ 25-akpm/sound/core/control.c	2004-07-06
> 21:27:51.622682752 -0700 @@ -1116,7 +1116,7 @@ static ssize_t
> snd_ctl_read(struct file
>  			wait_queue_t wait;
>  			if ((file->f_flags & O_NONBLOCK) != 0 || result > 0) {
>  				err = -EAGAIN;
> -				goto out;
> +				goto __end;
>  			}
>  			init_waitqueue_entry(&wait, current);
>  			add_wait_queue(&ctl->change_sleep, &wait);
> @@ -1137,7 +1137,7 @@ static ssize_t snd_ctl_read(struct file
>  		kfree(kev);
>  		if (copy_to_user(buffer, &ev, sizeof(snd_ctl_event_t))) {
>  			err = -EFAULT;
> -			goto __end;
> +			goto out;
>  		}
>  		spin_lock_irq(&ctl->read_lock);
>  		buffer += sizeof(snd_ctl_event_t);
> _

It hadn't and the patch fixed the issue. :-)

Thanks,
rjw

-- 
Rafael J. Wysocki
----------------------------
For a successful technology, reality must take precedence over public 
relations, for nature cannot be fooled.
					-- Richard P. Feynman

  reply	other threads:[~2004-07-08 21:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-08 21:24 R. J. Wysocki
2004-07-08 21:21 ` Andrew Morton
2004-07-08 21:50   ` R. J. Wysocki [this message]
2004-07-08 21:26 ` R. J. Wysocki

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=200407082350.52483.rjwysocki@sisk.pl \
    --to=rjwysocki@sisk.pl \
    --cc=akpm@osdl.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

all inboxes | Powered by JetHome®