[PATCH openEuler-5.10-LTS 32/44] dm stats: add cond_resched when looping over entries