Re: [PATCH 4/4] locking/lockdep: Test all incompatible scenario at once in check_irq_usage()

Yuyang Du
2019-04-13T06:39:55Z

On Wed, 3 Apr 2019 at 00:05, Frederic Weisbecker <frederic@kernel.org> wrote:
>
> check_prev_add_irq() tests all incompatible scenarios one after the
> other while adding a lock (@next) to a tree dependency (@prev):
>
> LOCK_USED_IN_HARDIRQ vs LOCK_ENABLED_HARDIRQ
> LOCK_USED_IN_HARDIRQ_READ vs LOCK_ENABLED_HARDIRQ
> LOCK_USED_IN_SOFTIRQ vs LOCK_ENABLED_SOFTIRQ
> LOCK_USED_IN_SOFTIRQ_READ vs LOCK_ENABLED_SOFTIRQ

May I ask why

LOCK_USED_IN_*IRQ vs. LOCK_ENABLED_*IRQ_READ

is not tested?

Thanks,
Yuyang