commit | c0c09bfdc4150b3918526660768585cd477adf35 | [log] [tgz] |
---|---|---|
author | Ying Xue <ying.xue@windriver.com> | Wed Jan 07 13:41:56 2015 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 08 19:47:11 2015 -0800 |
tree | b314052625dceb2550c4b3c4b57ed609896127a6 | |
parent | bd6d4db552ceb52fb19890a454836dcda59743ce [diff] |
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>