Re: [PATCH net-next] rhashtable: Allow other tasks to be scheduled in large lookup loops

Thomas Graf
2015-07-17T08:50:24Z

On 07/17/15 at 10:28am, Eric Dumazet wrote:
> On Fri, 2015-07-17 at 10:24 +0200, Eric Dumazet wrote:
>
> > Please simply use cond_resched() without counting and magic value.

Done

> Also use cond_resched() in insert and delete phases ?

When I tried that it made the walker duplicates disappear which weakens
the test case a little bit but it's probably safer this way. I'll include
it in the v2.