ratelimit: fix the return value when __ratelimit() fails to acquire the lock
authorYong Zhang <yong.zhang@windriver.com>
Tue, 6 Apr 2010 21:35:03 +0000 (14:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Apr 2010 15:38:04 +0000 (08:38 -0700)
commit57119c34e53bbb8d244c3ff1335ef5145768538f
tree829858c9c167a2da60b54f85d4c620e58fe42125
parentbb1dc0bacb8ddd7ba6a5906c678a5a5a110cf695
ratelimit: fix the return value when __ratelimit() fails to acquire the lock

The log of commit edaac8e3167501cda336231d00611bf59c164346 ("ratelimit:
Fix/allow use in atomic contexts"), indicates that we want to suppress the
callback when the trylock fails.

Signed-off-by: Yong Zhang <yong.zhang@windriver.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/ratelimit.c