From: Morten Helgesen <admin@nextframe.net>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: [PATCH] drivers/scsi/psi240i.c - io_request_lock fix
Date: Tue, 8 Jan 2002 15:07:38 +0100 [thread overview]
Message-ID: <20020108150738.B6168@sexything> (raw)
Hey Linus and the rest of you.
A simple fix for the io_request_lock issue leftovers in drivers/scsi/psi240i.c.
Not tested, but compiles. Diffed against 2.5.2-pre10. Please apply.
== Morten
--
"Det er ikke lett å være menneske" - sitat fra en klok person.
mvh
Morten Helgesen
UNIX System Administrator & C Developer
Nextframe AS
admin@nextframe.net / 93445641
http://www.nextframe.net
--- vanilla-linux-2.5.2-pre10/drivers/scsi/psi240i.c Tue Jan 8 10:57:31 2002
+++ patched-linux-2.5.2-pre10/drivers/scsi/psi240i.c Tue Jan 8 14:48:56 2002
@@ -370,10 +370,11 @@
static void do_Irq_Handler (int irq, void *dev_id, struct pt_regs *regs)
{
unsigned long flags;
+ struct Scsi_Host *host = PsiHost[irq - 10];
- spin_lock_irqsave(&io_request_lock, flags);
+ spin_lock_irqsave(&host->host_lock, flags);
Irq_Handler(irq, dev_id, regs);
- spin_unlock_irqrestore(&io_request_lock, flags);
+ spin_unlock_irqrestore(&host->host_lock, flags);
}
/****************************************************************
* Name: Psi240i_QueueCommand
next reply other threads:[~2002-01-08 14:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-08 14:07 Morten Helgesen [this message]
2002-01-09 1:09 ` [PATCH] drivers/scsi/psi240i.c - io_request_lock fix Douglas Gilbert
2002-01-09 10:46 ` Jens Axboe
2002-01-09 11:07 ` Morten Helgesen
-- strict thread matches above, loose matches on Subject: below --
2002-01-09 13:28 Adam J. Richter
2002-01-09 13:52 ` Morten Helgesen
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=20020108150738.B6168@sexything \
--to=admin@nextframe.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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