From ea581953e15ebea92a456fbb1bb5d7ea4cdc40ca Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Wed, 30 Dec 2020 18:12:21 +0100 Subject: [PATCH] Shorten cleaner thread name Signed-off-by: Robert Baldyga --- modules/cas_cache/threads.c | 2 +- .../tests/cache_ops/test_cleaning_policy_operation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cas_cache/threads.c b/modules/cas_cache/threads.c index be283d2..f27cbda 100644 --- a/modules/cas_cache/threads.c +++ b/modules/cas_cache/threads.c @@ -250,7 +250,7 @@ int cas_create_cleaner_thread(ocf_cleaner_t c) int result; result = _cas_create_thread(&info, _cas_cleaner_thread, c, - CAS_CPUS_ALL, "cas_clean_%s", + CAS_CPUS_ALL, "cas_cl_%s", ocf_cache_get_name(cache)); if (!result) { ocf_cleaner_set_priv(c, info); diff --git a/test/functional/tests/cache_ops/test_cleaning_policy_operation.py b/test/functional/tests/cache_ops/test_cleaning_policy_operation.py index 072deda..71adb9f 100644 --- a/test/functional/tests/cache_ops/test_cleaning_policy_operation.py +++ b/test/functional/tests/cache_ops/test_cleaning_policy_operation.py @@ -33,7 +33,7 @@ io_size = Size(10000, Unit.Blocks4096) time_to_wait = 30 # Name of CAS cleaner to search for in running processes: -cas_cleaner_process_name = "cas_clean" +cas_cleaner_process_name = "cas_cl_" @pytest.mark.parametrize("cleaning_policy", CleaningPolicy)