locking/lockdep: Untangle xhlock history save/restore from task independence
commitf52be5708076b75a045ac52c6fef3fffb8300525
authorPeter Zijlstra <peterz@infradead.org>
Tue, 29 Aug 2017 08:59:39 +0000 (29 10:59 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2017 13:14:38 +0000 (29 15:14 +0200)
tree8e98d8731a45427562e9429a2e763e74828acc27
parent7b3d61cc73a1abe4c2c7eaf00093b338c8b233b0
locking/lockdep: Untangle xhlock history save/restore from task independence

Where XHLOCK_{SOFT,HARD} are save/restore points in the xhlocks[] to
ensure the temporal IRQ events don't interact with task state, the
XHLOCK_PROC is a fundament different beast that just happens to share
the interface.

The purpose of XHLOCK_PROC is to annotate independent execution inside
one task. For example workqueues, each work should appear to run in its
own 'pristine' 'task'.

Remove XHLOCK_PROC in favour of its own interface to avoid confusion.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Byungchul Park <byungchul.park@lge.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: boqun.feng@gmail.com
Cc: david@fromorbit.com
Cc: johannes@sipsolutions.net
Cc: kernel-team@lge.com
Cc: oleg@redhat.com
Cc: tj@kernel.org
Link: http://lkml.kernel.org/r/20170829085939.ggmb6xiohw67micb@hirez.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/irqflags.h
include/linux/lockdep.h
kernel/locking/lockdep.c
kernel/workqueue.c