Commit Graph

50293 Commits

Author SHA1 Message Date
Sage Weil
ef80690622 buffer: clean up raw_combined construction
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 09:09:22 -05:00
Sage Weil
b6ed4d3ebf buffer: size append_buffer so that it fits into page-multiple allocations
We drop some unittest assertions about alloc buffer size.  Sorry!

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 09:09:22 -05:00
Sage Weil
f2c0d5cd10 rbd-replay: s/CEPH_BUFFER_APPEND_SIZE/CEPH_PAGE_SIZE/
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 09:09:22 -05:00
Sage Weil
ce3e5a3347 buffer: alloc right-sized buffer from read_fd
This may as well fit the input; this doesn't relate to the
append buffer.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:29 -05:00
Sage Weil
73dcd26fc8 buffer: use raw_combined for certain allocations
If the alignment is on a page boundary, or the allocation is big,
a separate buffer::raw goes faster.  The rest of the time,
a raw_combined does.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:29 -05:00
Sage Weil
6be3b99d5d buffer: align unspecified allocations to a word
This will let us put policy create_aligned.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:28 -05:00
Sage Weil
724a493adc buffer: combine data and buffer::raw into single allocation
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:28 -05:00
Sage Weil
04482ae902 buffer: add front(), back(), get_num_buffers() methods
These eliminate most callers of buffers(), which exposes the
internal list<ptr>.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:28 -05:00
Sage Weil
69bcbe104d unittest_bufferlist: benchmark some allocations
Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:28 -05:00
Sage Weil
08c0d98bc1 unittest_bufferlist: fix append_bench
- fix source
- include larger sizes

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:28 -05:00
Sage Weil
7723d294a5 unittest_bufferlist: fix ptr move test
Do not assume there is a trailing null the terminate the string.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-03-01 08:47:28 -05:00
Sage Weil
149f01f3d8 Merge pull request #7739 from xiexingguo/xxg-wip-14387
osd: fix race condition for heartbeat_need_update

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:46:08 -05:00
Sage Weil
ef5973324b Merge pull request #7703 from xiexingguo/xxg-wip-statfs
osd: filestore: fast abort if statfs encounters ENOENT

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:45:39 -05:00
Sage Weil
57b838f4b8 Merge pull request #7766 from adamemerson/wip-portable-mutex
common: Do not use non-portable constants in mutex_debug

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2016-03-01 08:45:00 -05:00
Sage Weil
5f429178b5 Merge pull request #7799 from xiexingguo/xxg-wip-fixnvme
osd: bluestore: NVMEDevice: fix error handling

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:44:21 -05:00
Sage Weil
46bd7bbb8b Merge pull request #7804 from jjhuo/fixes
osd: kstore: fix a race condition in _txc_finish()

Reviewed-by: Sage Weil <sage@redhat.com>
2016-03-01 08:43:49 -05:00
Sage Weil
0edaae6305 Merge pull request #7816 from marcan/build-fixes
configure.ac: boost_iostreams is required, not optional

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-03-01 08:43:25 -05:00
Loic Dachary
d5c9349ea8 Merge pull request #7858 from jdurgin/wip-rbd-formatted-output-progress
test/cli-integration/rbd: disable progress output

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-03-01 17:58:25 +07:00
John Spray
3d8fc94381 Merge pull request #7745 from sileht/sileht/rados-cython
pybind: move cephfs to Cython

Reviewed-by: John Spray <john.spray@redhat.com>
2016-03-01 10:40:21 +00:00
Haomai Wang
4ea3d68368 Merge pull request #7831 from yuyuyu101/wip-14912
AsyncMessenger: fix several bugs
2016-03-01 17:54:03 +08:00
Haomai Wang
48a5f2d835 Merge pull request #7852 from xiexingguo/xxg-wip-14928
msg: async: start over after failing to bind a port in specified range

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Kefu Chai <kefu@redhat.com>
2016-03-01 17:53:20 +08:00
xie xingguo
8ffc4e8001 msg: async: start over after failing to bind a port in specified range
The original report associated with this fix can be found at
http://tracker.ceph.com/issues/13002. I reopen one in case it
needs to be backported or something alike.

Fixes: #14928
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-01 22:45:14 +08:00
Josh Durgin
acc640542c test/cli-integration/rbd: disable progress output
This test is intended to check machine-readable output and usage, not
human-readable output.

Fixes: #14931
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-02-29 22:57:56 -08:00
Josh Durgin
4f98ba25d0 Merge pull request #7778 from marcan/pybind-fixes
pybind/rados: fix object lifetime issues and other bugs in aio

Reviewed-by: Mehdi Abaakouk <sileht@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-29 22:48:53 -08:00
Kefu Chai
cbe8dfbdbc Merge pull request #7855 from tchaikov/wip-fix-ftbfs
test/TestPGLog: fix the FTBFS

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-03-01 14:39:29 +08:00
Kefu Chai
203987331e test/TestPGLog: fix the FTBFS
the new pure virtual method was introduced by e7edf20.

Fixes: #14930
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-03-01 13:20:29 +08:00
Josh Durgin
abd708d858 Merge pull request #7781 from ceph/wip-fix-rbd-cli-tests
rbd/run_cli_tests.sh: Reflect test failures

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-29 17:30:09 -08:00
Samuel Just
440e9b5d56 Merge pull request #7769 from somnathr/wip-make-shared
Use make_shared while creating shared_ptr

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-29 15:04:28 -08:00
Samuel Just
306c7bf40e Merge pull request #7765 from athanatos/wip-lost-unfound-repop
Repop and lost-unfound overhaul

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-29 10:42:01 -08:00
Haomai Wang
0c0e8a0fb6 AsyncConnection: log cleanup, remove redundant state display
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 01:52:05 +08:00
Haomai Wang
324145b702 Event: complete all pending events
Fix #14925
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 01:42:50 +08:00
Haomai Wang
bd592c0f88 AsyncConnection: dispatch write handler when accept done
Fix #12912
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-03-01 00:28:27 +08:00
Samuel Just
5f82cbe054 Merge pull request #7824 from dillaman/wip-aio-watch-notify
librados: fix test failure with new aio watch/unwatch API 

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-02-29 07:42:08 -08:00
Jason Dillaman
4b0ff1c792 Merge pull request #7832 from trociny/wip-journal-register-async
journal: async methods to (un)register and update client

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-02-29 08:53:17 -05:00
Kefu Chai
7bc42aaac5 Merge pull request #7829 from xiexingguo/xxg-wip-doc
doc: fix typo, indention etc.

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-29 21:13:10 +08:00
xiexingguo
bcc2866e0f doc: fix typo, indention etc.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-03-01 02:26:18 +08:00
John Spray
4b172fd27d pybind: update ceph_volume_client for cython
No need to explicitly touch the (no-longer-existing)
load_libcephfs method during module load, as with
the cython version we already get an ImportError
if the C library is unavailable.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-29 11:36:57 +01:00
John Spray
7f03c0e5b2 pybind: fix error handling on getxattr
The ctypes bindings returned empty string
instead of raising exception.  This was a bug,
because it made it impossible to detect the
difference between missing xattr and empty
xattr.

Signed-off-by: John Spray <john.spray@redhat.com>
2016-02-29 11:36:40 +01:00
Mehdi Abaakouk
10f125f765 pybind: move cephfs to Cython
This change moves cephfs binding to Cython.

Closes-bug: #14818
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-29 10:58:52 +01:00
Kefu Chai
8c054f741a Merge pull request #7747 from vsjulu/master
xio: fix incorrect ip being assigned in case of multiple RDMA ports

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-28 00:01:55 +08:00
Yehuda Sadeh
894738f845 Merge pull request #7630 from rzarzynski/wip-rgw-admin-token-cache
rgw: add support for caching of Keystone admin token.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-27 06:22:09 -08:00
Yehuda Sadeh
04884be986 Merge pull request #7825 from ceph/wip-rgw-openssl
rgw: link civetweb with openssl (Sage, Marcus Watts)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-27 06:17:15 -08:00
Mykola Golub
9453967f62 test: add tests to (un)register and update journal client
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-27 14:59:11 +02:00
Haomai Wang
3e18f564ed Revert "AsyncConnection: Close connection when unregistered connection met WAIT"
This reverts commit 9cc1055eb6.

Fix #14912
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-27 20:50:48 +08:00
Mykola Golub
a4527c3cf5 journal: async methods to (un)register and update client
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-27 12:33:13 +02:00
Mykola Golub
378f4c73ba cls::journal: async client_unregister
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-27 12:33:04 +02:00
Marcus Watts
86718592c0 cmake fix: build civetweb with the right include path.
In an earlier commit, civetweb.c got moved into a separate cmake 'object'
library civetweb_common_objs so that it could be built just once for use
with several different targets.  At the time, there was a separate global
"include_directory" to give the right include path for including "civetweb.h".
A later commit in master created an rgw_a library, and restricted civetweb.h's
include path for only building rgw_a objects.  So, as the product of
these these two commits, the target_include_directories command for the
civetweb include path now needs to be applied to civetweb_common_objs
and not rgw_a.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
2016-02-27 02:34:14 -05:00
Sage Weil
74d698a406 Merge pull request #7650 from avnerbh/fix1_rand
msg: add thread safety for "random" Messenger + fix wrong usage of random functions

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-02-26 18:58:28 -05:00
Sage Weil
0499ca89a0 Merge pull request #7651 from xiexingguo/xxg-wip-fixtypecheck
osd: bluestore: improve fs-type verification and tidy up

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-26 18:57:19 -05:00
Sage Weil
6e497e077d Merge pull request #7654 from rldleblanc/wip-wpq-optimization
osd: WeightedPriorityQueue: move to intrusive containers
2016-02-26 18:36:52 -05:00