From: Marcin Dalecki <dalecki@evision.ag>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: martin@dalecki.de, linux-kernel@vger.kernel.org
Subject: Re: cli/sti removal from linux-2.5.29/drivers/ide?
Date: Wed, 31 Jul 2002 22:12:03 +0200 [thread overview]
Message-ID: <3D484493.8030908@evision.ag> (raw)
In-Reply-To: 200207302010.NAA04198@baldur.yggdrasil.com
Adam J. Richter wrote:
> 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.
Please have a look at the usage of the QUEU_FLAG_STOPPED
in the reuquest_queue struct. Lock is shared -> flag guaring
it is not. Just one example. *But* if you can make the
whole noting of shared locks go away -> then go ahead for it.
I would be glad to see it working.
next prev parent reply other threads:[~2002-08-01 9:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-30 20:10 cli/sti removal from linux-2.5.29/drivers/ide? Adam J. Richter
2002-07-31 20:12 ` Marcin Dalecki [this message]
-- 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=3D484493.8030908@evision.ag \
--to=dalecki@evision.ag \
--cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.