summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-09-23 18:54:37 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-10-01 13:57:50 +0200
commit7b5ff4bb9adc53cfbf7ac9ba7820ccf0cd7c070a (patch)
tree9b7c013500409b5e0292b6fd2a6eb8ed8447fd5c /mm/memory.c
parent874f670e6088d3bff3972ecd44c1cb00610f9183 (diff)
downloadlinux-7b5ff4bb9adc53cfbf7ac9ba7820ccf0cd7c070a.tar.bz2
sched: Make cond_resched_*lock() variants consistent vs. might_sleep()
Commit 3427445afd26 ("sched: Exclude cond_resched() from nested sleep test") removed the task state check of __might_sleep() for cond_resched_lock() because cond_resched_lock() is not a voluntary scheduling point which blocks. It's a preemption point which requires the lock holder to release the spin lock. The same rationale applies to cond_resched_rwlock_read/write(), but those were not touched. Make it consistent and use the non-state checking __might_resched() there as well. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20210923165357.991262778@linutronix.de
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions