Skip to content

Commit

Permalink
ECBackend: send subop writes and reads at normal priority
Browse files Browse the repository at this point in the history
We want these to be processed ahead of new client ops since
there are resources being held.

Fixes: 14313
Backport: hammer
Signed-off-by: Samuel Just <sjust@redhat.com>
  • Loading branch information
athanatos committed Feb 25, 2016
1 parent 257225d commit b1151c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osd/ECBackend.cc
Expand Up @@ -1830,7 +1830,6 @@ void ECBackend::start_write(Op *op) {
op->on_local_applied_sync = 0;
} else {
MOSDECSubOpWrite *r = new MOSDECSubOpWrite(sop);
r->set_priority(cct->_conf->osd_client_op_priority);
r->pgid = spg_t(get_parent()->primary_spg_t().pgid, i->shard);
r->map_epoch = get_parent()->get_epoch();
get_parent()->send_message_osd_cluster(
Expand Down Expand Up @@ -1972,7 +1971,7 @@ void ECBackend::objects_read_async(
c)));

start_read_op(
cct->_conf->osd_client_op_priority,
CEPH_MSG_PRIO_DEFAULT,
for_read_op,
OpRequestRef(),
fast_read, false);
Expand Down

0 comments on commit b1151c4

Please sign in to comment.