Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

PG: delay ops in do_request, not queue_op

Signed-off-by: Samuel Just <sam.just@inktank.com>
  • Loading branch information...
commit c6db1b2ee267f27021d4d1a32fd33950134de94b 1 parent 9b182d2
Samuel Just athanatos authored

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. +2 4 src/osd/PG.cc
6 src/osd/PG.cc
@@ -4098,10 +4098,8 @@ bool PG::must_delay_request(OpRequestRef op)
4098 4098
4099 4099 void PG::queue_op(OpRequestRef op)
4100 4100 {
4101   - if (must_delay_request(op)) {
4102   - op_waiters.push_back(op);
4103   - return;
4104   - } else if (can_discard_request(op)) {
  4101 + if (!must_delay_request(op) &&
  4102 + can_discard_request(op)) {
4105 4103 return;
4106 4104 }
4107 4105 op_queue.push_back(op);

0 comments on commit c6db1b2

Please sign in to comment.
Something went wrong with that request. Please try again.