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)
commitc0c09bfdc4150b3918526660768585cd477adf35
treeb314052625dceb2550c4b3c4b57ed609896127a6
parentbd6d4db552ceb52fb19890a454836dcda59743ce
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