summaryrefslogtreecommitdiffstats
path: root/Documentation/locking
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2015-01-07 10:04:41 +0100
committerIngo Molnar <mingo@kernel.org>2015-01-14 15:16:21 +0100
commit0f1ba9a2cea52896448ef4e14a4cb1880b8e5bee (patch)
tree301b6a4c78620715ea99a35eba30e80a866097e9 /Documentation/locking
parent036cc30c6b6af1cd42de6c34c4461f17da01cbf7 (diff)
downloadlinux-0-day-0f1ba9a2cea52896448ef4e14a4cb1880b8e5bee.tar.gz
linux-0-day-0f1ba9a2cea52896448ef4e14a4cb1880b8e5bee.tar.xz
softirq/preempt: Add missing current->preempt_disable_ip update
While debugging some "sleeping function called from invalid context" bug I realized that the debugging message "Preemption disabled at:" pointed to an incorrect function. In particular if the last function/action that disabled preemption was spin_lock_bh() then current->preempt_disable_ip won't be updated. The reason for this is that __local_bh_disable_ip() will increase preempt_count manually instead of calling preempt_count_add(), which would handle the update correctly. It look like the manual handling was done to work around some lockdep issue. So add the missing update of current->preempt_disable_ip to __local_bh_disable_ip() as well. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/20150107090441.GC4365@osiris Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'Documentation/locking')
0 files changed, 0 insertions, 0 deletions