diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 1b59e265273b..2c75f7daa439 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6609,6 +6609,8 @@ int cond_resched_lock(spinlock_t *lock) | |||
6609 | int resched = should_resched(); | 6609 | int resched = should_resched(); |
6610 | int ret = 0; | 6610 | int ret = 0; |
6611 | 6611 | ||
6612 | lockdep_assert_held(lock); | ||
6613 | |||
6612 | if (spin_needbreak(lock) || resched) { | 6614 | if (spin_needbreak(lock) || resched) { |
6613 | spin_unlock(lock); | 6615 | spin_unlock(lock); |
6614 | if (resched) | 6616 | if (resched) |