Skip to content
Permalink
Browse files
s390: Add airq_iv_lock
Allow lockdep to track the airq bit spin locks.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
  • Loading branch information
Matthew Wilcox (Oracle) authored and intel-lab-lkp committed Apr 9, 2021
1 parent 172ce0a commit 6592d0d634dacfb6fd14d9a659050a85e39a953e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
@@ -26,6 +26,7 @@ struct airq_struct {

int register_adapter_interrupt(struct airq_struct *airq);
void unregister_adapter_interrupt(struct airq_struct *airq);
extern struct iv_lock airq_iv_lock;

/* Adapter interrupt bit vector */
struct airq_iv {
@@ -72,13 +73,13 @@ static inline unsigned long airq_iv_end(struct airq_iv *iv)
static inline void airq_iv_lock(struct airq_iv *iv, unsigned long bit)
{
const unsigned long be_to_le = BITS_PER_LONG - 1;
bit_spin_lock(bit ^ be_to_le, iv->bitlock);
bit_spin_lock(bit ^ be_to_le, iv->bitlock, &airq_iv_lock);
}

static inline void airq_iv_unlock(struct airq_iv *iv, unsigned long bit)
{
const unsigned long be_to_le = BITS_PER_LONG - 1;
bit_spin_unlock(bit ^ be_to_le, iv->bitlock);
bit_spin_unlock(bit ^ be_to_le, iv->bitlock, &airq_iv_lock);
}

static inline void airq_iv_set_data(struct airq_iv *iv, unsigned long bit,
@@ -31,6 +31,9 @@ static struct hlist_head airq_lists[MAX_ISC+1];

static struct dma_pool *airq_iv_cache;

DEFINE_SPLIT_LOCK(airq_iv_lock);
EXPORT_SYMBOL(airq_iv_lock);

/**
* register_adapter_interrupt() - register adapter interrupt handler
* @airq: pointer to adapter interrupt descriptor

0 comments on commit 6592d0d

Please sign in to comment.