From: "Adam J. Richter" <adam@yggdrasil.com>
To: martin@dalecki.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: cli/sti removal from linux-2.5.29/drivers/ide?
Date: Tue, 30 Jul 2002 13:10:47 -0700 [thread overview]
Message-ID: <200207302010.NAA04198@baldur.yggdrasil.com> (raw)
Martin Dalecki wrote:
>Adam J. Richter wrote:
>> That said, I think all the "lock group" logic in drivers/ide
>> may be useless, and it would be pretty straightforward to delete all
>> that code, have ata_channel->lock be a lock rather than a pointer to one,
>> and have it be initialized before that first call to ch->tuneproc, in
>> which case we could just have interrupts off and ch->lock held in all
>> cases when ch->tuneproc is called. I did not want to do this in my patch,
>> because I wanted to keep my patch as small as possible, but perhaps it
>> would be worth doing now just to simplify the rules for calling ch->tuneproc.
>Not quite. It's not that easy becouse the same lock is used by the BIO
>layer to synchronize between for example master and slave devices.
Master and slave devices share the same channel, so
master->channel == slave->channel
&master->channel->lock == &slave->channel->lock
So their queue->lock pointer would continue to point to
the same lock: &channel->lock.
>There are other problems with this but right now you can hardly do
>something about it.
I'd be intersted in knowing what one of those other problems
is. Otherwise, I don't understand why I can't eliminate the "lock
group" stuff.
Adam J. Richter __ ______________ 575 Oroville Road
adam@yggdrasil.com \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
"Free Software For The Rest Of Us."
next reply other threads:[~2002-07-30 20:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-30 20:10 Adam J. Richter [this message]
2002-07-31 20:12 ` Marcin Dalecki
-- strict thread matches above, loose matches on Subject: below --
2002-07-31 7:46 Adam J. Richter
2002-07-31 20:43 ` Marcin Dalecki
2002-07-30 18:35 Adam J. Richter
2002-07-29 20:18 Adam J. Richter
2002-07-30 9:17 ` Marcin Dalecki
2002-07-29 15:49 Adam J. Richter
2002-07-29 17:51 ` Alan Cox
2002-07-29 0:26 Adam J. Richter
2002-07-29 11:56 ` Alan Cox
2002-07-29 11:07 ` Marcin Dalecki
2002-07-29 12:59 ` Alan Cox
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=200207302010.NAA04198@baldur.yggdrasil.com \
--to=adam@yggdrasil.com \
--cc=linux-kernel@vger.kernel.org \
--cc=martin@dalecki.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 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®