On Thu, Apr 30, 2020 at 02:20:23PM +0300, Nikolay Aleksandrov wrote: > Maybe we can batch the deletes at say 32 at a time? Hi Nik, Thanks for looking into this! I don't really feel comfortable hard coding an arbitrary number of entries before calling cond_resched(). I didn't see a noticeable difference in execution time with the previous patch versus an unpatched kernel. Also, in the examples I saw in the networking code cond_resched() is always called after each loop iteration. Let me know how you prefer it and I will send a patch.