From: Mykola Golub Date: Wed, 10 Jun 2020 06:37:14 +0000 (+0100) Subject: librbd: do not return ESTALE in response for duplicate quiesce X-Git-Tag: v16.1.0~2015^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5686e22dfa08a4215618b027ba0cd6a01e42948d;p=ceph.git librbd: do not return ESTALE in response for duplicate quiesce The sender would need just filter out this error anyway. Signed-off-by: Mykola Golub --- diff --git a/src/librbd/ImageWatcher.cc b/src/librbd/ImageWatcher.cc index 15421cb487a3..ee7c6e08baed 100644 --- a/src/librbd/ImageWatcher.cc +++ b/src/librbd/ImageWatcher.cc @@ -689,7 +689,7 @@ Context *ImageWatcher::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();