From: Tejun Heo <htejun@gmail.com>
To: Ingo Oeser <ioe-lkml@rameria.de>
Cc: linux-kernel@vger.kernel.org, Jeff Garzik <jgarzik@pobox.com>,
linux-ide@vger.kernel.org
Subject: Re: [PATCH] libata queue updated
Date: Mon, 30 Jan 2006 17:44:54 +0900 [thread overview]
Message-ID: <43DDD206.6000502@gmail.com> (raw)
In-Reply-To: <200601300936.43977.ioe-lkml@rameria.de>
Ingo Oeser wrote:
> On Monday 30 January 2006 08:04, Tejun Heo wrote:
>> I object. Using array is intentional. Slave aware controllers (PATA /
>> ata_piix) will use [0..1], most SATA controllers will use only [0], and
>> PM aware ones will use [0..15]. The intention was requiring low level
>> drivers of only what they know and normalize them in the core layer.
>>
>> eg. Current std SATA reset routines consider the argument as *class (a
>> single class value) and it's intentional. As long as a lldd is aware of
>> only one device per port, it's allowed/recommeded to consider the passed
>> classes argument as a pointer to single class value. The rest is upto
>> the core libata layer.
>
> But what you pass along is basically an unbounded array, which is
> a bug waiting to happen.
Hello, again.
I'm a little bit lost here.
So, are you saying....
struct ata_classes {
unsigned int classes[2];
|;
is safer than
unsigned int *class;
?
>
> So please let the core layer pass a bounded array here or provide
> a function from core layer to set that and check the index.
>
Can you show me what you have in mind as code?
--
tejun
next prev parent reply other threads:[~2006-01-30 8:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-28 18:25 [PATCH] libata queue updated Jeff Garzik
2006-01-29 16:11 ` Ingo Oeser
2006-01-30 7:04 ` Tejun Heo
2006-01-30 8:36 ` Ingo Oeser
2006-01-30 8:44 ` Tejun Heo [this message]
2006-01-30 19:02 ` Ingo Oeser
2006-01-31 0:04 ` Tejun
2006-01-31 2:33 ` Ingo Oeser
2006-01-31 2:41 ` Tejun
2006-01-30 15:01 ` Jeff Garzik
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=43DDD206.6000502@gmail.com \
--to=htejun@gmail.com \
--cc=ioe-lkml@rameria.de \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--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 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.