From: Jeff Garzik <jeff@garzik.org>
To: Christoph Hellwig <hch@infradead.org>,
"Darrick J. Wong" <djwong@us.ibm.com>,
Andrew Morton <akpm@osdl.org>
Cc: linux-ide <linux-ide@vger.kernel.org>,
linux-scsi <linux-scsi@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Alexis Bruemmer <alexisb@us.ibm.com>,
Mike Anderson <andmike@us.ibm.com>
Subject: Re: [PATCH v3] libsas: move ATA bits into a separate module
Date: Mon, 18 Sep 2006 17:47:24 -0400 [thread overview]
Message-ID: <450F13EC.2020303@garzik.org> (raw)
In-Reply-To: <20060918190033.GD17670@infradead.org>
Christoph Hellwig wrote:
> On Thu, Sep 14, 2006 at 03:40:55PM -0700, Darrick J. Wong wrote:
>> Jeff Garzik wrote:
>>
>>> I disagree completely with this approach.
>>>
>>> You don't need a table of hooks for the case where libata is disabled in
>>> .config. Thus, it's only useful for the case where libsas is loaded as
>>> a module, but libata is not.
>> Indeed, I misunderstood what James Bottomley wanted, so I reworked the
>> patch. It has the same functionality as before, but this module uses
>> the module loader/symbol resolver for all the functions in libata, and
>> allows libsas to (optionally) call into sas_ata with weak references by
>> pushing a table of the necessary function pointers into libsas at
>> sas_ata load time. Thus, libsas doesn't need to load libata/sas_ata
>> unless it actually finds a SATA device.
>
> NACK again. Week references are bad. Please change it back to normal
> hard references so that it works like everything else in the kernel.
I strongly agree.
The kernel code will bloat, and performance will suffer, if we did weak
refs and jump tables everywhere.
I just don't see the overhead of loading libata, and not using it, as a
huge penalty, when looking at the alternatives.
Consider the common use cases: (a) normal distro usage, often servers
where libata loading will be common anyway due to SATA presence on
motherboard, and (b) embedded use, where ATA support can be .config'd
out at compile time.
Thus, the use cases where end users really will care about libata being
loaded, but not used, are slim to none.
Jeff
prev parent reply other threads:[~2006-09-18 21:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4508A0A2.2080605@us.ibm.com>
[not found] ` <450971D3.2040405@garzik.org>
2006-09-14 22:40 ` [PATCH v3] libsas: move ATA bits into a separate module Darrick J. Wong
2006-09-14 22:49 ` Jeff Garzik
2006-09-18 19:00 ` Christoph Hellwig
2006-09-18 21:47 ` Jeff Garzik [this message]
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=450F13EC.2020303@garzik.org \
--to=jeff@garzik.org \
--cc=akpm@osdl.org \
--cc=alexisb@us.ibm.com \
--cc=andmike@us.ibm.com \
--cc=djwong@us.ibm.com \
--cc=hch@infradead.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).