]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: do not return ESTALE in response for duplicate quiesce
authorMykola Golub <mgolub@suse.com>
Wed, 10 Jun 2020 06:37:14 +0000 (07:37 +0100)
committerMykola Golub <mgolub@suse.com>
Wed, 10 Jun 2020 06:37:14 +0000 (07:37 +0100)
The sender would need just filter out this error anyway.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/librbd/ImageWatcher.cc

index 15421cb487a38d45cda53cfcf7e9619548d2e59c..ee7c6e08baedf6dce6726fb63be9037807f86d9a 100644 (file)
@@ -689,7 +689,7 @@ Context *ImageWatcher<I>::prepare_quiesce_request(
       delete it->second.first;
       it->second.first = ack_ctx;
     } else {
-      m_task_finisher->queue(new C_ResponseMessage(ack_ctx), -ESTALE);
+      m_task_finisher->queue(new C_ResponseMessage(ack_ctx));
     }
     locker.unlock();