• Herbert Xu's avatar
    rhashtable: Add multiple rehash support · b824478b
    Herbert Xu authored
    This patch adds the missing bits to allow multiple rehashes.  The
    read-side as well as remove already handle this correctly.  So it's
    only the rehasher and insertion that need modification to handle
    Note that this patch doesn't actually enable it so for now rehashing
    is still only performed by the worker thread.
    This patch also disables the explicit expand/shrink interface because
    the table is meant to expand and shrink automatically, and continuing
    to export these interfaces unnecessarily complicates the life of the
    rehasher since the rehash process is now composed of two parts.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    Acked-by: default avatarThomas Graf <tgraf@suug.ch>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
rhashtable.h 23 KB