File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ int ___ratelimit(struct ratelimit_state *rs, const char *func)
58
58
* the current lock owner is just about to reset it.
59
59
*/
60
60
if (!raw_spin_trylock_irqsave (& rs -> lock , flags )) {
61
- if (READ_ONCE (rs -> flags ) & RATELIMIT_INITIALIZED && burst &&
61
+ if (READ_ONCE (rs -> flags ) & RATELIMIT_INITIALIZED &&
62
62
atomic_read (& rs -> rs_n_left ) > 0 && atomic_dec_return (& rs -> rs_n_left ) >= 0 )
63
63
ret = 1 ;
64
64
goto nolock_ret ;
@@ -90,7 +90,7 @@ int ___ratelimit(struct ratelimit_state *rs, const char *func)
90
90
}
91
91
92
92
/* Note that the burst might be taken by a parallel call. */
93
- if (burst && atomic_read (& rs -> rs_n_left ) > 0 && atomic_dec_return (& rs -> rs_n_left ) >= 0 )
93
+ if (atomic_read (& rs -> rs_n_left ) > 0 && atomic_dec_return (& rs -> rs_n_left ) >= 0 )
94
94
ret = 1 ;
95
95
96
96
unlock_ret :
You can’t perform that action at this time.
0 commit comments