]>
git.proxmox.com Git - ceph.git/blob - ceph/src/libradosstriper/MultiAioCompletionImpl.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) 2014 Sebastien Ponce <sebastien.ponce@cern.ch>
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.
15 #include "common/dout.h"
17 #include "libradosstriper/MultiAioCompletionImpl.h"
19 void libradosstriper::MultiAioCompletionImpl::complete_request(ssize_t r
)
23 if (r
< 0 && r
!= -EEXIST
)
28 assert(pending_complete
);
29 int count
= --pending_complete
;
30 if (!count
&& !building
) {
36 void libradosstriper::MultiAioCompletionImpl::safe_request(ssize_t r
)
40 if (r
< 0 && r
!= -EEXIST
)
44 int count
= --pending_safe
;
45 if (!count
&& !building
) {
51 void libradosstriper::MultiAioCompletionImpl::finish_adding_requests()
56 if (!pending_complete
)