]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita959f00d13e5516f21e684ca548a4f0e9abd3f8e
tree829858c9c167a2da60b54f85d4c620e58fe42125
parentf80af553507eb092748bab13c5f709aa299c4606
ratelimit: fix the return value when __ratelimit() fails to acquire the lock

The log of commit 5e557547bcf5423c27f8d5cbe8d9fd76b455c10a ("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