--- zzzz-none-000/linux-4.9.218/lib/ratelimit.c 2020-04-02 15:20:41.000000000 +0000 +++ seale-7590ax-750/linux-4.9.218/lib/ratelimit.c 2023-03-29 10:59:08.000000000 +0000 @@ -13,6 +13,8 @@ #include #include +#include + /* * __ratelimit - rate limiting * @rs: ratelimit_state data @@ -39,7 +41,7 @@ * in addition to the one that will be printed by * the entity that is holding the lock already: */ - if (!raw_spin_trylock_irqsave(&rs->lock, flags)) + if (!yield_raw_spin_trylock_irqsave(&rs->lock, flags)) return 0; if (!rs->begin) @@ -64,7 +66,7 @@ rs->missed++; ret = 0; } - raw_spin_unlock_irqrestore(&rs->lock, flags); + yield_raw_spin_unlock_irqrestore(&rs->lock, flags); return ret; }