From ee617a0ca56d752daf62bfffa59219b2c540a428 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 2 May 2016 10:33:50 -0400 Subject: [PATCH] librbd: disable automatic refresh of image upon lock message There is no need to refresh the image upon request/release/acquire of the exclusive lock. The next IO or maintenance op will kick off the refresh. This is interfering with the refresh state machine unit test case (since two concurrent refreshes shouldn't be possible). Signed-off-by: Jason Dillaman --- src/librbd/WatchNotifyTypes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librbd/WatchNotifyTypes.h b/src/librbd/WatchNotifyTypes.h index 813ff5fd49c68..f5ec6210e2228 100644 --- a/src/librbd/WatchNotifyTypes.h +++ b/src/librbd/WatchNotifyTypes.h @@ -92,7 +92,7 @@ enum NotifyOp { struct AcquiredLockPayload { static const NotifyOp NOTIFY_OP = NOTIFY_OP_ACQUIRED_LOCK; - static const bool CHECK_FOR_REFRESH = true; + static const bool CHECK_FOR_REFRESH = false; ClientId client_id; @@ -106,7 +106,7 @@ struct AcquiredLockPayload { struct ReleasedLockPayload { static const NotifyOp NOTIFY_OP = NOTIFY_OP_RELEASED_LOCK; - static const bool CHECK_FOR_REFRESH = true; + static const bool CHECK_FOR_REFRESH = false; ClientId client_id; @@ -120,7 +120,7 @@ struct ReleasedLockPayload { struct RequestLockPayload { static const NotifyOp NOTIFY_OP = NOTIFY_OP_REQUEST_LOCK; - static const bool CHECK_FOR_REFRESH = true; + static const bool CHECK_FOR_REFRESH = false; ClientId client_id; bool force = false; -- 2.39.5