From 6355f01e017e7f903af78d00b7b1803be12e38e7 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 5 Mar 2024 16:24:21 +0300 Subject: [PATCH] locking: add some hardcoded locks Add some IGNOREs and hard code mt7530_mutex_lock/unlock() behavior. Signed-off-by: Dan Carpenter --- check_locking.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/check_locking.c b/check_locking.c index c1624da5..e009bdc4 100644 --- a/check_locking.c +++ b/check_locking.c @@ -437,6 +437,8 @@ static struct lock_info lock_table[] = { {"rcu_nocb_unlock_irqrestore", RESTORE, irq, 1, "$" }, {"bch_write_bdev_super", IGNORE_LOCK, sem, 0, "&$->sb_write_mutex"}, + {"bcache_write_super", IGNORE_LOCK, sem, 0, "&$->set->sb_write_mutex"}, + {"uuid_io", IGNORE_LOCK, sem, 0, "&$->uuid_write_mutex" }, {"dlfb_set_video_mode", IGNORE_LOCK, sem, 0, "&$->urbs.limit_sem"}, {"efx_rwsem_assert_write_locked", IGNORE_LOCK, sem, 0, "&"}, @@ -450,6 +452,9 @@ static struct lock_info lock_table[] = { { "perf_event_period", IGNORE_LOCK, mutex, 0, "&$->ctx->mutex"}, { "perf_event_enable", IGNORE_LOCK, mutex, 0, "&$->ctx->mutex"}, + { "qede_load", IGNORE_LOCK, mutex, 0, "&$->qede_lock" }, + { "qede_unload", IGNORE_LOCK, mutex, 0, "&$->qede_lock" }, + { "deactivate_locked_super", UNLOCK, spin_lock, 0, "&$->s_umount"}, { "ext4_lock_group", LOCK, spin_lock, 0, "$"}, { "ext4_unlock_group", UNLOCK, spin_lock, 0, "$"}, @@ -459,6 +464,9 @@ static struct lock_info lock_table[] = { {"uart_unlock_and_check_sysrq_irqrestore", UNLOCK, spin_lock, 0, "&$->lock"}, + {"mt7530_mutex_lock", LOCK, mutex, 0, "&$->bus->mdio_lock"}, + {"mt7530_mutex_unlock", UNLOCK, mutex, 0, "&$->bus->mdio_lock"}, + {"class_mutex_destructor", UNLOCK, mutex, 0, "*$", NULL, NULL, &match_class_mutex_destructor}, {"class_rwsem_write_destructor", UNLOCK, sem, 0, "*$", NULL, NULL, &match_class_mutex_destructor}, -- 2.11.4.GIT