Benjamin Marzinski 32ea54b00b dm-delay: fix max_delay calculations
[ Upstream commit 64eb88d6caee2c8eb806a68dab3f184f14f818a4 ]

delay_ctr() pointlessly compared max_delay in cases where multiple delay
classes were initialized identically. Also, when write delays were
configured different than read delays, delay_ctr() never compared their
value against max_delay. Fix these issues.

Fixes: 70bbeb29fab0 ("dm delay: for short delays, use kthread instead of timers and wq")
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-30 09:49:24 +02:00
..
2024-01-11 13:58:04 -08:00
2024-03-26 18:17:38 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2024-03-26 18:17:38 -04:00
2024-03-26 18:17:38 -04:00
2024-03-26 18:17:38 -04:00
2024-03-26 18:17:38 -04:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2024-03-26 18:17:38 -04:00
2024-03-26 18:17:38 -04:00
2024-01-11 13:58:04 -08:00