public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christian Borntraeger <kernel@borntraeger.net>
To: dan carpenter <error27@email.com>, Bart Samwel <bart@samwel.tk>,
	linux-kernel@vger.kernel.org
Subject: Re: ide-scsi scheduling while atomic in linux-2.6.0-test11
Date: Wed, 10 Dec 2003 08:03:29 +0100	[thread overview]
Message-ID: <200312100803.29578.kernel@borntraeger.net> (raw)
In-Reply-To: <200312092120.18367.error27@email.com>

dan carpenter wrote:
> > ide-scsi scheduling while atomic in linux-2.6.0-test11
>
> You don't need ide-cd to burn cds in 2.6 so the easiest fix is to just
> stop using ide-cd.  Anyway,  here is the buggy code that causes the
> problem:

ide-scsi....ide-cd is working.
>
> drivers/scsi/ide-scsi.c
> 895:         spin_lock_irqsave(&ide_lock, flags);
> 896:         while (HWGROUP(drive)->handler) {
> 897:                 HWGROUP(drive)->handler = NULL;
> 898:                 schedule_timeout(1);
> 899:         }
>
> The fix is quite complicated and I don't know how to do it correctly.  :/

First idea I have is to replace the spinlocks with semaphores. 

cheers

CHristian


  reply	other threads:[~2003-12-10  7:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10  5:30 ide-scsi scheduling while atomic in linux-2.6.0-test11 Bart Samwel
2003-12-10  5:20 ` dan carpenter
2003-12-10  7:03   ` Christian Borntraeger [this message]
2003-12-11  0:53 ` bill davidsen

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=200312100803.29578.kernel@borntraeger.net \
    --to=kernel@borntraeger.net \
    --cc=bart@samwel.tk \
    --cc=error27@email.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