diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-25 16:09:17 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-09-13 11:11:45 +0200 |
commit | ec484608c5885931c432e99ecfd2772288cd993c (patch) | |
tree | 1e62f1ac1e79241d092bef4c7b9f051c9cf9b014 /include | |
parent | 76bf6877fed4f59826a72e0ab209badfc594008a (diff) | |
download | linux-stable-ec484608c5885931c432e99ecfd2772288cd993c.tar.gz linux-stable-ec484608c5885931c432e99ecfd2772288cd993c.tar.bz2 linux-stable-ec484608c5885931c432e99ecfd2772288cd993c.zip |
locking, kprobes: Annotate the hash locks and kretprobe.lock as raw
The kprobe locks can be taken in atomic context and therefore
cannot be preempted on -rt - annotate it.
In mainline this change documents the low level nature of
the lock - otherwise there's no functional difference. Lockdep
and Sparse checking will work as usual.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kprobes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index dd7c12e875bc..dce6e4dbeda7 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h @@ -181,7 +181,7 @@ struct kretprobe { int nmissed; size_t data_size; struct hlist_head free_instances; - spinlock_t lock; + raw_spinlock_t lock; }; struct kretprobe_instance { |