From db39ae436b97bfb9aa5581991d201b05d815935b Mon Sep 17 00:00:00 2001 From: Yong Zhang Date: Tue, 6 Apr 2010 14:35:03 -0700 Subject: [PATCH] --- yaml --- r: 189575 b: refs/heads/master c: 57119c34e53bbb8d244c3ff1335ef5145768538f h: refs/heads/master i: 189573: efc68ac737c64bdd7069451b156e5cd0e4900167 189571: 74aff87e2e74877fa820d29f5a7c5f36271dab2f 189567: 42eb74ef07efda1aaf6b4bce3a6993b01e65a871 v: v3 --- [refs] | 2 +- trunk/lib/ratelimit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8dee68b30494..b30f06a0d67d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695 +refs/heads/master: 57119c34e53bbb8d244c3ff1335ef5145768538f diff --git a/trunk/lib/ratelimit.c b/trunk/lib/ratelimit.c index b4cd24ff9b29..027a03f4c56d 100644 --- a/trunk/lib/ratelimit.c +++ b/trunk/lib/ratelimit.c @@ -40,7 +40,7 @@ int ___ratelimit(struct ratelimit_state *rs, const char *func) * the entity that is holding the lock already: */ if (!spin_trylock_irqsave(&rs->lock, flags)) - return 1; + return 0; if (!rs->begin) rs->begin = jiffies;