[PATCH 4.19 23/30] dm stats: add cond_resched when looping over entries