[Cluster-devel] [PATCH dlm/tool] plock: move clear waiter to debug info

Alexander Aring aahringo at redhat.com
Wed Aug 4 14:31:25 UTC 2021


This patch moves the clear waiter log message for a killed/interrupted
posix lock of a user space from error to debug. It can be confused to
see it as error in the log but it's necessary to cleanup all waiters who
are waiting for the lock.

Reported-by: Shane Bradley <sbradley at redhat.com>
---
 dlm_controld/plock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlm_controld/plock.c b/dlm_controld/plock.c
index 992fb16f..692787e2 100644
--- a/dlm_controld/plock.c
+++ b/dlm_controld/plock.c
@@ -660,7 +660,7 @@ static void clear_waiters(struct lockspace *ls, struct resource *r,
 
 		list_del(&w->list);
 
-		log_elock(ls, "clear waiter %llx %llx-%llx %d/%u/%llx",
+		log_dlock(ls, "clear waiter %llx %llx-%llx %d/%u/%llx",
 			  (unsigned long long)in->number,
 			  (unsigned long long)in->start,
 			  (unsigned long long)in->end,
-- 
2.27.0




More information about the Cluster-devel mailing list