]>
git.proxmox.com Git - ceph.git/blob - ceph/src/osd/PGQueueable.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2016 Red Hat Inc.
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
17 #include "PGQueueable.h"
21 void PGQueueable::RunVis::operator()(const OpRequestRef
&op
) {
22 osd
->dequeue_op(pg
, op
, handle
);
25 void PGQueueable::RunVis::operator()(const PGSnapTrim
&op
) {
26 pg
->snap_trimmer(op
.epoch_queued
);
29 void PGQueueable::RunVis::operator()(const PGScrub
&op
) {
30 pg
->scrub(op
.epoch_queued
, handle
);
33 void PGQueueable::RunVis::operator()(const PGRecovery
&op
) {
34 osd
->do_recovery(pg
.get(), op
.epoch_queued
, op
.reserved_pushes
, handle
);