From: Jens Axboe <axboe@suse.de>
To: Rasmus Andersen <rasmus@jaquet.dk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Add missing spin_unlock_irq to ide.c (244ac16)
Date: Fri, 25 May 2001 23:11:23 +0200 [thread overview]
Message-ID: <20010525231123.C22714@suse.de> (raw)
In-Reply-To: <20010525225934.K851@jaquet.dk>
In-Reply-To: <20010525225934.K851@jaquet.dk>; from rasmus@jaquet.dk on Fri, May 25, 2001 at 10:59:34PM +0200
On Fri, May 25 2001, Rasmus Andersen wrote:
> (I forgot to cc l-k on this one when it went to andre.)
>
> Hi.
>
> This patch adds a spin_unlock_irqsave to ide_spin_wait_hwgroup as
> reported by the Stanford team way back. It applies against 244ac16.
>
>
> --- linux-244-ac16-clean/drivers/ide/ide.c Fri May 25 21:11:08 2001
> +++ linux-244-ac16/drivers/ide/ide.c Fri May 25 22:46:43 2001
> @@ -2362,6 +2362,8 @@
> __restore_flags(lflags); /* local CPU only */
> spin_lock_irq(&io_request_lock);
> }
> +
> + spin_unlock_irq(&io_request_lock);
> return 0;
> }
This isn't right. Granted the locking isn't straight forward here, but
take a look at ide_write_setting -> ide_spin_wait_hwgroup and the
latters return value.
BTW, also try and follow local style when making such changes.
--
Jens Axboe
next prev parent reply other threads:[~2001-05-25 21:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-25 20:59 [PATCH] Add missing spin_unlock_irq to ide.c (244ac16) Rasmus Andersen
2001-05-25 21:11 ` Jens Axboe [this message]
2001-05-25 21:17 ` Rasmus Andersen
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=20010525231123.C22714@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rasmus@jaquet.dk \
/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