]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: avoid unnecessary wakeup for worker queue
authorYing Xue <ying.xue@windriver.com>
Wed, 7 Jan 2015 05:41:56 +0000 (13:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Jan 2015 03:47:11 +0000 (19:47 -0800)
commit4765b1160fc25a0bcc5900b8b8aad9a9df7811a5
treeb314052625dceb2550c4b3c4b57ed609896127a6
parentfe5a79365c9213942ca9dc9f43a4c487c19a77f7
rhashtable: avoid unnecessary wakeup for worker queue

Move condition statements of verifying whether hash table size exceeds
its maximum threshold or reaches its minimum threshold from resizing
functions to resizing decision functions, avoiding unnecessary wakeup
for worker queue thread.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Cc: Thomas Graf <tgraf@suug.ch>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h
lib/rhashtable.c