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/linux/kprobes.h | |
parent | 76bf6877fed4f59826a72e0ab209badfc594008a (diff) | |
download | kernel_goldelico_gta04-ec484608c5885931c432e99ecfd2772288cd993c.zip kernel_goldelico_gta04-ec484608c5885931c432e99ecfd2772288cd993c.tar.gz kernel_goldelico_gta04-ec484608c5885931c432e99ecfd2772288cd993c.tar.bz2 |
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/linux/kprobes.h')
-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 dd7c12e..dce6e4d 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 { |