From e2a5715a60e4897492a35c4e91bf3208f62e2f24 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 29 Oct 2024 20:25:35 +0100 Subject: [PATCH] cache_manip: reset sigint handler After processing interrupt, reset the interrupt counter, so further code is not mislead and continues processing in 'locked' section as expected. --- lib/metadata/cache_manip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/metadata/cache_manip.c b/lib/metadata/cache_manip.c index 451e94b68..bc6a5c309 100644 --- a/lib/metadata/cache_manip.c +++ b/lib/metadata/cache_manip.c @@ -468,6 +468,7 @@ int lv_cache_wait_for_clean(struct logical_volume *cache_lv, int *is_clean) if (cache_seg->cleaner_policy) { cache_seg->cleaner_policy = 0; /* Restore normal table */ + sigint_clear(); if (!lv_update_and_reload_origin(cache_lv)) stack; }