From: Samuel Just Date: Wed, 27 Aug 2014 23:21:41 +0000 (-0700) Subject: PG::can_discard_op: do discard old subopreplies X-Git-Tag: v0.85~7^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2345%2Fhead;p=ceph.git PG::can_discard_op: do discard old subopreplies Otherwise, a sub_op_reply from a previous interval can stick around until we either one day go active again and get rid of it or delete the pg which is holding it on its waiting_for_active list. While it sticks around futily waiting for the pg to once more go active, it will cause harmless slow request warnings. Fixes: #9259 Backport: firefly Signed-off-by: Samuel Just --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 2c86f3ba2d25..0d7363ffab3b 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -5039,7 +5039,7 @@ bool PG::can_discard_request(OpRequestRef op) case MSG_OSD_PG_PUSH_REPLY: return can_discard_replica_op(op); case MSG_OSD_SUBOPREPLY: - return false; + return can_discard_replica_op(op); case MSG_OSD_EC_WRITE: return can_discard_replica_op(op);