diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 5ce473ad499b..82cbd7a68994 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -975,6 +975,7 @@ static void __debug_check_no_obj_freed(const void *address, unsigned long size)
 
 repeat:
 		cnt = 0;
+		cond_resched();
 		raw_spin_lock_irqsave(&db->lock, flags);
 		hlist_for_each_entry_safe(obj, tmp, &db->list, node) {
 			cnt++;