]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: add a note for grow and shrink decision functions
authorYing Xue <ying.xue@windriver.com>
Mon, 12 Jan 2015 06:52:24 +0000 (14:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 19:01:00 +0000 (14:01 -0500)
commit06116a7766de59ef35543185c7c6dc7c89c6568c
tree97def40b133732cc55d2f15bfa8e6f652528dc4e
parentef1875751f785b94f3599d6bb558e5defc8d1d91
rhashtable: add a note for grow and shrink decision functions

As commit ec160349fc2d ("rhashtable: avoid unnecessary wakeup for
worker queue") moves condition statements of verifying whether hash
table size exceeds its maximum threshold or reaches its minimum
threshold from resizing functions to resizing decision functions,
we should add a note in rhashtable.h to indicate the implementation
of what the grow and shrink decision function must enforce min/max
shift, otherwise, it's failed to take min/max shift's set watermarks
into effect.

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