]> 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)
commitec160349fc2dd30ab587f95419fddb7106f4cf01
treeb314052625dceb2550c4b3c4b57ed609896127a6
parentd3dde075d835106226eeb02b3dcd0b81996df2a7
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