From: Jeff Garzik <jgarzik@pobox.com>
To: Mark Lord <kernel@teksavvy.com>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
Tejun Heo <htejun@gmail.com>
Subject: Re: [PATCH 4/4] libata: allow hyphenated pattern ranges
Date: Mon, 05 Jul 2010 18:20:18 -0400 [thread overview]
Message-ID: <4C325AA2.9020201@pobox.com> (raw)
In-Reply-To: <4C3252FF.3040501@teksavvy.com>
On 07/05/2010 05:47 PM, Mark Lord wrote:
> On 05/07/10 02:33 PM, Jeff Garzik wrote:
>> On 07/05/2010 10:25 AM, Mark Lord wrote:
>>> Enable use of hyphenated pattern ranges in glob_match(), similar to how
>>> shell globbing works, and how developers might expect things to work.
>>>
>>> Signed-off-by: Mark Lord <mlord@pobox.com>
>>> ---
>>>
>>> Patch also attached, to get around ongoing mailer issues here.
>>> Eventually, glob_match() will move out of libata into lib/string.c or
>>> similar.
>>
>> No issue with correctness... but where is the demonstrated need?
>>
>> Did someone ask for this?
> ..
>
> Not specifically. But since this will eventually end up as a kernel-wide
> library function, somebody somewhere will eventually make the reasonable
> assumption that it does globbing "in the usual way".
>
> Adding the hyphenated ranges turned out to be almost trivial,
> so I added it on and posted the patch.
>
> I could also send you follow-on patches to use that feature
> in the ata blacklists, if you like, saving a few more bytes hither and
> dither. :)
I understand the logic, but typically lean towards rejecting this sort
of patch due to "mission creep." It's always easy to make code do One
More Thing, but without any actual users, there is little justification.
In this case, if you send a follow-on patch to _use_ this, I would be
happy to apply both glob_match() and blacklist patches at that point.
> Speaking of this stuff.. how do we go about moving this function to
> /lib/strings.c ?
> Can that be done via your git tree?
Technically, yes, git can easily do that.
Two comments come to mind, though:
1) ditto on mission creep. lib/string.c is a burden carried by -all-
Linux platforms unconditionally, whereas loading libata.ko depends on
several conditions. I wouldn't advise moving it until additional usage
justifies burdening all platforms -- including non-SATA tiny embedded
platforms -- with glob_match() implementation.
It's becoming a real problem with lib/ in general, unfortunately. If
two minor sections of the kernel (or two minor, wholly unrelated
drivers) need some common code, it gets dumped into lib/ with the
associated costs forced upon all.
2) once other kernel users appear, submit the "move to lib/string" patch
as a distinct patch in the series of patches to driver XYZ adding a
glob_match() caller. I'll happily add an Acked-by on your patch, and it
can be submitted either direct to Linus/Andrew, or via the specific
subsystem tree that is adding a new glob_match() caller.
I prefer the Acked-by route for patches that are only tangentially
related to libata.
Jeff
next prev parent reply other threads:[~2010-07-05 22:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-01 15:30 [PATCH 1/3] libata: glob_match for ata_device_blacklist Mark Lord
2010-07-01 15:31 ` [PATCH 2/3] libata: reduce blacklist size Mark Lord
2010-07-01 15:31 ` [PATCH 3/3] libata: reduce blacklist size even more Mark Lord
2010-07-01 15:36 ` [PATCH 3/3] libata: reduce blacklist size (resend) Mark Lord
2010-07-01 15:34 ` [PATCH 1/3] libata: glob_match for ata_device_blacklist Mark Lord
2010-07-01 15:36 ` James Bottomley
2010-07-01 15:44 ` Mark Lord
2010-07-01 19:24 ` Jeff Garzik
2010-07-01 21:56 ` Mark Lord
2010-07-01 22:09 ` Mark Lord
2010-07-01 22:16 ` [PATCH 1/3] libata: glob_match for ata_device_blacklist (v2) Mark Lord
2010-07-01 22:17 ` [PATCH 2/3] libata: reduce blacklist size (v2) Mark Lord
2010-07-01 22:18 ` [PATCH 3/3] libata: reduce blacklist size even more (v2) Mark Lord
2010-07-02 7:19 ` Jeff Garzik
2010-07-05 14:25 ` [PATCH 4/4] libata: allow hyphenated pattern ranges Mark Lord
2010-07-05 18:33 ` Jeff Garzik
2010-07-05 21:47 ` Mark Lord
2010-07-05 22:20 ` Jeff Garzik [this message]
2010-07-05 22:39 ` Mark Lord
2010-07-05 22:50 ` [PATCH 5/5] " Mark Lord
2010-07-05 22:51 ` Mark Lord
2010-07-05 22:53 ` [PATCH 5/5] libata: allow hyphenated pattern ranges (v2) Mark Lord
2010-07-14 7:54 ` 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=4C325AA2.9020201@pobox.com \
--to=jgarzik@pobox.com \
--cc=htejun@gmail.com \
--cc=kernel@teksavvy.com \
--cc=linux-ide@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.