]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: disable automatic refresh of image upon lock message 9008/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 2 May 2016 14:33:50 +0000 (10:33 -0400)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 May 2016 16:49:17 +0000 (12:49 -0400)
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 <dillaman@redhat.com>
(cherry picked from commit ee617a0ca56d752daf62bfffa59219b2c540a428)

src/librbd/WatchNotifyTypes.h

index 813ff5fd49c684d2153bc445705cee32e7b5e909..f5ec6210e2228b902c38690081cc45813606c6bb 100644 (file)
@@ -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;