From: "Dave Young" <hidave.darkstar@gmail.com>
To: "Joe Perches" <joe@perches.com>
Cc: akpm@linux-foundation.org, paulmck@us.ibm.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
"David Miller" <davem@davemloft.net>
Subject: Re: [PATCH -mm] __ratelimit rewrite
Date: Mon, 5 May 2008 13:18:30 +0800 [thread overview]
Message-ID: <a8e1da0805042218l6fbacfd9sa139b00c3077895b@mail.gmail.com> (raw)
In-Reply-To: <1209955974.13011.10.camel@localhost>
On Mon, May 5, 2008 at 10:52 AM, Joe Perches <joe@perches.com> wrote:
>
> On Mon, 2008-05-05 at 10:58 +0800, Dave Young wrote:
> > On Mon, May 5, 2008 at 10:25 AM, Joe Perches <joe@perches.com> wrote:
> > > On Mon, 2008-05-05 at 09:37 +0800, Dave Young wrote:
> > > > > I think your changes should then be done in
> > > > > printk.h not creating a new ratelimit.h.
> > > > IMO ratelimit is not just for printk use now, so a standalone head
> > > > file is necessary.
> > > What other uses would ratelimit have?
> > ratelimit is a general function, another user of it is
> > WARN_ON_RATELIMIT in this patch. It could have other usage in future.
>
> You put WARN_ON_RATELIMIT in bug.h right?
> WARN_ON in bug.h is a printk
Yes, warn is indeed printk, but it's not equal to printk.
>
> printk.h should #include <asm/bug.h>
> kernel.h should not include that file.
>
> What non print related function could be served by ratelimit?
You can do some other handling except printk in ratelimit logic.
After searching the code, I guess DCCP-Sync ratelimit can use this feature.
David, am I right?
BTW, most of printk_ratelimit users should use their own
ratelimit_state, maybe I should do the replace work as a patch series.
next prev parent reply other threads:[~2008-05-05 5:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-04 7:07 Dave Young
2008-05-04 7:54 ` David Miller
2008-05-04 8:13 ` Dave Young
2008-05-04 14:47 ` Joe Perches
2008-05-05 1:37 ` Dave Young
2008-05-05 2:25 ` Joe Perches
2008-05-05 2:58 ` Dave Young
2008-05-05 2:52 ` Joe Perches
2008-05-05 5:18 ` Dave Young [this message]
2008-05-05 5:20 ` David Miller
2008-05-05 2:27 ` Dave Young
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=a8e1da0805042218l6fbacfd9sa139b00c3077895b@mail.gmail.com \
--to=hidave.darkstar@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=paulmck@us.ibm.com \
/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
Powered by JetHome