aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-06-09 08:17:10 +0200
committerIngo Molnar <mingo@kernel.org>2017-06-09 08:17:10 +0200
commit8affb06737ae565722764c2b309eb0e892538344 (patch)
tree80ee0ce911755a2d30a18c7698ea1424764e8de6 /include
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
parentsrcu: Allow use of Classic SRCU from both process and interrupt context (diff)
downloadlinux-dev-8affb06737ae565722764c2b309eb0e892538344.tar.xz
linux-dev-8affb06737ae565722764c2b309eb0e892538344.zip
Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into rcu/urgent
Pull RCU fix from Paul E. McKenney: " This series enables srcu_read_lock() and srcu_read_unlock() to be used from interrupt handlers, which fixes a bug in KVM's use of SRCU in delivery of interrupts to guest OSes. " Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/srcu.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/srcu.h b/include/linux/srcu.h
index 167ad8831aaf..4c1d5f7e62c4 100644
--- a/include/linux/srcu.h
+++ b/include/linux/srcu.h
@@ -172,9 +172,7 @@ static inline int srcu_read_lock(struct srcu_struct *sp) __acquires(sp)
{
int retval;
- preempt_disable();
retval = __srcu_read_lock(sp);
- preempt_enable();
rcu_lock_acquire(&(sp)->dep_map);
return retval;
}