Re: [PATCH v2 net-next 07/12] rhashtable: add schedule points

2018-03-30 Thread Herbert Xu
On Fri, Mar 30, 2018 at 01:42:31PM -0700, Eric Dumazet wrote: > Rehashing and destroying large hash table takes a lot of time, > and happens in process context. It is safe to add cond_resched() > in rhashtable_rehash_table() and rhashtable_free_and_destroy() > > Signed-off-by: Eric Dumazet Acked

[PATCH v2 net-next 07/12] rhashtable: add schedule points

2018-03-30 Thread Eric Dumazet
Rehashing and destroying large hash table takes a lot of time, and happens in process context. It is safe to add cond_resched() in rhashtable_rehash_table() and rhashtable_free_and_destroy() Signed-off-by: Eric Dumazet --- lib/rhashtable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/li