Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spinlock: extend guard with spinlock_bh variants

Extend guard APIs with missing raw/spinlock_bh variants.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Christian Marangi and committed by
Herbert Xu
d6104733 2014c95a

+13
+13
include/linux/spinlock.h
··· 548 548 549 549 DEFINE_LOCK_GUARD_1_COND(raw_spinlock_irq, _try, raw_spin_trylock_irq(_T->lock)) 550 550 551 + DEFINE_LOCK_GUARD_1(raw_spinlock_bh, raw_spinlock_t, 552 + raw_spin_lock_bh(_T->lock), 553 + raw_spin_unlock_bh(_T->lock)) 554 + 555 + DEFINE_LOCK_GUARD_1_COND(raw_spinlock_bh, _try, raw_spin_trylock_bh(_T->lock)) 556 + 551 557 DEFINE_LOCK_GUARD_1(raw_spinlock_irqsave, raw_spinlock_t, 552 558 raw_spin_lock_irqsave(_T->lock, _T->flags), 553 559 raw_spin_unlock_irqrestore(_T->lock, _T->flags), ··· 574 568 575 569 DEFINE_LOCK_GUARD_1_COND(spinlock_irq, _try, 576 570 spin_trylock_irq(_T->lock)) 571 + 572 + DEFINE_LOCK_GUARD_1(spinlock_bh, spinlock_t, 573 + spin_lock_bh(_T->lock), 574 + spin_unlock_bh(_T->lock)) 575 + 576 + DEFINE_LOCK_GUARD_1_COND(spinlock_bh, _try, 577 + spin_trylock_bh(_T->lock)) 577 578 578 579 DEFINE_LOCK_GUARD_1(spinlock_irqsave, spinlock_t, 579 580 spin_lock_irqsave(_T->lock, _T->flags),