Re: printk_ratelimit and net_ratelimit conflict and tunable behavior

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steven Hawkes <fsh016@...>
Cc: <davem@...>, <joe@...>, <linux-kernel@...>, <netdev@...>
Date: Monday, February 25, 2008 - 7:45 pm

On Mon, 25 Feb 2008 14:36:40 -0600 Steven Hawkes <fsh016@ftw.mot.com> wrote:


This patch causes a large and nasty reject.


Probably because you patched 2.6.24.  We're developing 2.6.25 now, and the
difference between the two is very large inded.  Please raise patches
against Linus's latest tree?

There are other patches pending against printk.c (in -mm and in git-sched)
but afacit they won't collide.


Please do

struct printk_ratelimit_state {


I find that the best-value comments one can add to kernel code are to the
members of structures.  If the reader understands what all the fields do, the
code becomes simple to follow.


I don't get it.  There's one instance of limit_state, kernel-wide, and
__printk_ratelimit() modifies it.  What prevents one CPU's activities from
interfering with a second CPU's activities?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: printk_ratelimit and net_ratelimit conflict and tunable ..., Andrew Morton, (Mon Feb 25, 7:45 pm)
RE: printk_ratelimit and net_ratelimit conflict and tunable ..., Hawkes Steve-FSH016, (Thu Feb 28, 12:19 pm)