From: Ying Xue Date: Wed, 7 Jan 2015 05:41:53 +0000 (+0800) Subject: rhashtable: introduce rhashtable_wakeup_worker helper function X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~271^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54c5b7d311c8e1801f9dcce9f388a7420a25fa90;p=pandora-kernel.git rhashtable: introduce rhashtable_wakeup_worker helper function Introduce rhashtable_wakeup_worker() helper function to reduce duplicated code where to wake up worker. By the way, as long as the both "future_tbl" and "tbl" bucket table pointers point to the same bucket array, we should try to wake up the resizing worker thread, otherwise, it indicates the work of resizing hash table is not finished yet. However, currently we will wake up the worker thread only when the two pointers point to different bucket array. Obviously this is wrong. So, the issue is also fixed as well in the patch. Signed-off-by: Ying Xue Cc: Thomas Graf Acked-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed