public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ratelimit: patchset focus on return value of __ratelimit()
@ 2010-03-17  2:58 Yong Zhang
  2010-03-17  2:58 ` [PATCH 1/3] ratelimit: annotate ___ratelimit() Yong Zhang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yong Zhang @ 2010-03-17  2:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo

When try to use the new API pr_*_ratelimited(), I got the opposite outcome.
After some checking, I find print_ratelimited() misunderstand the return
value of __ratelimit(). So I fix it in this patchset and also annotate
__ratelimit() for later user.

I mark patch 3 with RFC because I'm afraid I misunderstand the intention,
Ingo, can you please take a look at it? You know that change is introduced
by edaac8e3167501cda336231d00611bf59c164346.

Yong Zhang (3):
      ratelimit: annotate ___ratelimit()
      kernel.h: fix wrong usage of __ratelimit()
      ratelimit: Fix return value when fail to get lock

 include/linux/kernel.h |    2 +-
 lib/ratelimit.c        |   11 ++++++++---
 2 files changed, 9 insertions(+), 4 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-22 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-17  2:58 [PATCH 0/3] ratelimit: patchset focus on return value of __ratelimit() Yong Zhang
2010-03-17  2:58 ` [PATCH 1/3] ratelimit: annotate ___ratelimit() Yong Zhang
2010-03-17  2:58 ` [PATCH 2/3] kernel.h: fix wrong usage of __ratelimit() Yong Zhang
2010-03-17  2:58 ` [RFC PATCH 3/3] ratelimit: Fix return value when fail to get lock Yong Zhang
2010-03-22 20:07   ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox