]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Jason Dillaman [Tue, 7 Jul 2015 23:07:03 +0000 (19:07 -0400)]
tests: aio_write/aio_discard have been refactored
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 7 Jul 2015 23:05:47 +0000 (19:05 -0400)]
librbd: refactor AIO request handling
Move aio_read/write/discard/flush to new AioImageRequest classes
in support of a unified aio queue / journaling.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 7 Jul 2015 17:06:50 +0000 (13:06 -0400)]
librbd: AIO submissions processed by new AioImageRequestWQ
New work queue has the ability to suspend write operations, which
should occur when exclusive locking is enabled and the client doesn't
own the lock.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 7 Jul 2015 19:56:35 +0000 (15:56 -0400)]
librbd: rename AioRequest classes to AioObjectRequest
This better reflects the fact that these represent requests against
an object extent and helps differentiate it from the future
AioImageRequest classes.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 6 Jul 2015 23:40:07 +0000 (19:40 -0400)]
librbd: rename C_AioWrite to C_AioRequest
This context is used for more than just write requests. It is always
tied to an AioCompletion, so moved request reference counting
management within class.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 6 Jul 2015 23:28:49 +0000 (19:28 -0400)]
librbd: removed unused method declarations and definitions
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 6 Jul 2015 17:36:10 +0000 (13:36 -0400)]
librbd: add support for dynamically enabling/disabling journaling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 8 Jul 2015 20:05:54 +0000 (16:05 -0400)]
pybind/rbd.py: add new journaling feature code
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 6 Jul 2015 15:53:21 +0000 (11:53 -0400)]
librbd: add new RBD_FEATURE_JOURNALING feature code
When enabled, all mutable operations against an RBD image
will be recorded to a journal prior to changing the underlying
RBD image.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Josh Durgin [Thu, 12 Nov 2015 22:08:31 +0000 (14:08 -0800)]
Merge branch 'wip-13504' of https://github.com/trociny/ceph
rbd: API: options on image create
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Conflicts:
src/test/librbd/test_librbd.cc (trivial, two tests added at end of file)
Mykola Golub [Fri, 23 Oct 2015 14:27:33 +0000 (17:27 +0300)]
librbd: API: options on image create: update tests
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Fri, 23 Oct 2015 09:38:08 +0000 (12:38 +0300)]
librbd: API: options on image create
Pass options as key/value configuration pairs on image create instead
of expanding rbd_create/rbd_clone/rbd_copy for every possible
configuration override.
Fixes: #13504
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Jason Dillaman [Thu, 12 Nov 2015 18:32:31 +0000 (13:32 -0500)]
Merge pull request #6557 from ceph/wip-rbd-cmake-fixes
cmake: librbd and libjournal build fixes
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Casey Bodley [Thu, 12 Nov 2015 17:34:08 +0000 (12:34 -0500)]
Merge pull request #6556 from athanatos/wip-cmake-nss
cmake: add nss as a suffix for pk11pub.h
Samuel Just [Wed, 11 Nov 2015 21:28:08 +0000 (13:28 -0800)]
cmake: add nss as a suffix for pk11pub.h
Signed-off-by: Samuel Just <sjust@redhat.com>
Ilya Dryomov [Thu, 12 Nov 2015 13:38:05 +0000 (14:38 +0100)]
librbd: provide an out-of-class definition for MAX_DESCRIPTION_OFFSET
std::min() takes its parameters by reference, so provide a definition
for OptionPrinter::MAX_DESCRIPTION_OFFSET constant.
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Ilya Dryomov [Thu, 12 Nov 2015 13:52:47 +0000 (14:52 +0100)]
cmake: fix librbd and add src/journal
librbd was missing a recently added file, src/journal was missing
entirely - this brings the build back.
Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
Sage Weil [Thu, 12 Nov 2015 13:40:42 +0000 (08:40 -0500)]
Merge pull request #6517 from kylinstorage/wip-trivial-bug
osd: fix bug in last_* PG state timestamps
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jason Dillaman [Thu, 12 Nov 2015 13:21:21 +0000 (08:21 -0500)]
Merge pull request #6552 from trociny/wip-journal
journal: incremental improvements and fixes
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Loic Dachary [Thu, 12 Nov 2015 11:35:20 +0000 (12:35 +0100)]
Merge pull request #6462 from javacruft/wip/ec-modules
Build internal plugins and classes as modules
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Mykola Golub [Thu, 29 Oct 2015 14:07:23 +0000 (16:07 +0200)]
journal: update allocated tid when skipping committed entry in player
Otherwise, if on image open, there are no any uncommitted entries in
journal, allocated tid is not updated to the latest commited and
recording always starts from tid=0.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Kefu Chai [Thu, 12 Nov 2015 03:53:34 +0000 (11:53 +0800)]
Merge pull request #6539 from yehudasa/wip-cmake-fix
cmake: fix files list
Reviewed-by: Kefu Chai <kchai@redhat.com>
Josh Durgin [Wed, 11 Nov 2015 19:54:56 +0000 (11:54 -0800)]
Merge pull request #6316 from dillaman/wip-13494
rbd: dynamically generated bash completion
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Wed, 11 Nov 2015 19:51:49 +0000 (11:51 -0800)]
Merge remote-tracking branch 'origin/jewel'
Yehuda Sadeh [Wed, 11 Nov 2015 16:38:05 +0000 (08:38 -0800)]
cmake: fix files list
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Mykola Golub [Thu, 8 Oct 2015 06:01:54 +0000 (09:01 +0300)]
cls::journal: fixup: constify dump functions
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Mon, 28 Sep 2015 18:37:05 +0000 (21:37 +0300)]
journal: call metadata shutdown on journal remove
This fixes error observed when disabling journal:
JournalMetadata: journal watch error: (107) Transport endpoint is not connected
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Thu, 17 Sep 2015 07:05:20 +0000 (10:05 +0300)]
journal: don't use object_number when comparing positions
Only tid does matter.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Tue, 1 Sep 2015 20:09:52 +0000 (23:09 +0300)]
journal: make commit and flush params configurable
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Sun, 6 Sep 2015 14:06:44 +0000 (17:06 +0300)]
journal: allow alternate pool for journal objects
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Thu, 3 Sep 2015 18:12:12 +0000 (21:12 +0300)]
journal: output operators for journal types
They are going to be used for diagnostic.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Sage Weil [Wed, 11 Nov 2015 14:23:39 +0000 (09:23 -0500)]
Merge pull request #6471 from mslovy/wip-check-reply-guard-again
osd: avoid double-check for replaying and can_checkpoint() in FileStore::_check_replay_guard
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Wed, 11 Nov 2015 14:16:58 +0000 (09:16 -0500)]
Merge pull request #6426 from xiexingguo/xxg-wip-13642
librados: fix rare race where pool op callback may hang forever
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Wed, 11 Nov 2015 14:15:51 +0000 (09:15 -0500)]
Merge pull request #6407 from renhwztetecs/renhw-wip-13627
mon: initialize recorded election epoch properly even when standalone
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Wed, 11 Nov 2015 14:14:01 +0000 (09:14 -0500)]
Merge pull request #6385 from Vicente-Cheng/mkfs-does-not-decode-an-existing-superblock
osd: fix reactivate (check OSDSuperblock in mkfs() when we already have the superblock)
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Sage Weil [Wed, 11 Nov 2015 14:12:31 +0000 (09:12 -0500)]
Merge pull request #6373 from liewegas/wip-promoteon2ndread-ec
librados: fix PromoteOn2ndRead test for EC
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jason Dillaman [Wed, 11 Nov 2015 14:10:44 +0000 (09:10 -0500)]
Merge pull request #6520 from trociny/fix-rbd-apply_changes
rbd: make config changes actually apply
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Wed, 11 Nov 2015 14:07:15 +0000 (09:07 -0500)]
Merge pull request #6347 from xiexingguo/xxg-wip-13566
osd: fixes for several cases where op result code was not checked or set
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Wed, 11 Nov 2015 14:02:26 +0000 (09:02 -0500)]
Merge pull request #5168 from majianpeng/dynamic-control-optracker
common: allow enable/disable of optracker at runtime
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 11 Nov 2015 14:00:44 +0000 (22:00 +0800)]
Merge pull request #6089 from SUSE/wip-init-ceph-getopt
init-ceph: use getopt to make option processing more flexible
Reviewed-by: Kefu Chai <kchai@redhat.com>
Nathan Cutler [Sun, 27 Sep 2015 21:16:48 +0000 (23:16 +0200)]
src/init-ceph.in: remove unused variables
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Sun, 27 Sep 2015 19:16:11 +0000 (21:16 +0200)]
src/init-ceph.in: improve usage message
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Sun, 27 Sep 2015 19:11:00 +0000 (21:11 +0200)]
src/init-ceph.in: process command-line options using getopt
http://tracker.ceph.com/issues/3015 Fixes: #3015
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Mykola Golub [Thu, 22 Oct 2015 07:11:08 +0000 (10:11 +0300)]
rbd: RBD::clone2: fix tracepoint
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Josh Durgin [Wed, 11 Nov 2015 07:55:37 +0000 (23:55 -0800)]
Merge pull request #6516 from trociny/wip-13719
librbd: perf section name: use hyphen to separate components
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Mykola Golub [Tue, 10 Nov 2015 09:27:05 +0000 (11:27 +0200)]
rbd: make config changes actually apply
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Tue, 10 Nov 2015 07:22:09 +0000 (09:22 +0200)]
tests: rbd/admin_socket: use xmlstarlet when parsing perf dump
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Tue, 10 Nov 2015 06:32:17 +0000 (08:32 +0200)]
librbd: perf section name: use hyphen to separate components
"/" and "@" characters make invalid xml format output.
Fixes: #13719
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Vikhyat Umrao [Mon, 19 Oct 2015 12:27:15 +0000 (17:57 +0530)]
doc: Adding --cluster option to rbd man page.
Fixes #13457
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Loic Dachary [Wed, 11 Nov 2015 06:05:12 +0000 (07:05 +0100)]
Merge pull request #6519 from kylinstorage/wip-revise-organization
revise organization
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Josh Durgin [Wed, 11 Nov 2015 05:43:52 +0000 (21:43 -0800)]
Merge pull request #6525 from dillaman/wip-13636-jewel
WorkQueue: new PointerWQ base class for ContextWQ
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Wed, 11 Nov 2015 05:19:37 +0000 (21:19 -0800)]
Merge branch 'wip-11286' of https://github.com/dillaman/ceph
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Wed, 11 Nov 2015 05:18:04 +0000 (21:18 -0800)]
Merge pull request #5987 from dillaman/wip-rbd-refactor
rbd: refactor cli command handling
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jason Dillaman [Tue, 20 Oct 2015 01:52:49 +0000 (21:52 -0400)]
rbd: dynamically generated bash completion
The rbd CLI bash completion is now dynamically generated by extracting
the available commands and command options from the CLI application.
Fixes: #13494
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 19 Oct 2015 19:07:50 +0000 (15:07 -0400)]
rbd: hidden 'bash-completion' command dumps all available commands
It also extracts all available options for a given command for use
which can be used by an improved bash completion script.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 10 Nov 2015 18:55:39 +0000 (13:55 -0500)]
tests: updated rbd CLI --image-feature optional
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Sun, 25 Oct 2015 15:57:29 +0000 (11:57 -0400)]
ceph_test_rados_api_tier: fix PromoteOn2ndRead for EC case
The ec and non-ec cases are copy&pasted code. Yuck. This duplicates the
non-ec fix from
347ac0f8 .
Signed-off-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Tue, 10 Nov 2015 18:21:11 +0000 (13:21 -0500)]
rbd: corrected handling of '--image-feature' optional
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Tue, 10 Nov 2015 16:56:40 +0000 (00:56 +0800)]
Merge pull request #6488 from xiexingguo/xxg-wip-rados-cleanup
librados: do cleanup
Reviewed-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Josh Durgin [Tue, 10 Nov 2015 16:32:40 +0000 (08:32 -0800)]
Merge pull request #6523 from dillaman/wip-13740
librbd: perf counters might not be initialized on error
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jason Dillaman [Tue, 7 Jul 2015 16:11:13 +0000 (12:11 -0400)]
WorkQueue: new PointerWQ base class for ContextWQ
The existing work queues do not properly function if added to a running
thread pool. librbd uses a singleton thread pool which requires
dynamically adding/removing work queues as images are opened and closed.
Fixes: #13636
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 10 Nov 2015 13:20:13 +0000 (08:20 -0500)]
librbd: perf counters might not be initialized on error
Fixes: #13740
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 10 Nov 2015 12:59:03 +0000 (07:59 -0500)]
PendingReleaseNotes: document updated rbd CLI options
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Loic Dachary [Tue, 10 Nov 2015 11:54:55 +0000 (12:54 +0100)]
Merge pull request #6522 from branch-predictor/bp-temporary-mon-fix
mon: revert MonitorDBStore's WholeStoreIteratorImpl::get
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Piotr Dałek [Tue, 10 Nov 2015 11:50:55 +0000 (12:50 +0100)]
mon: revert MonitorDBStore's WholeStoreIteratorImpl::get
Revert MonitorDBStore's WholeStoreIteratorImpl::get method to state
before commit
66b7b920cf5a0a9c71212573ef47fb2c7ea9b5ff until better,
long-term solution for #13742 will be provided.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Li Wang [Tue, 10 Nov 2015 09:20:29 +0000 (17:20 +0800)]
revise organization
Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
Li Wang [Tue, 10 Nov 2015 08:21:54 +0000 (16:21 +0800)]
osd: fix trivial bug
Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
Reported-by: Jie Wang <jie.wang@kylin-cloud.com>
Josh Durgin [Tue, 10 Nov 2015 07:30:42 +0000 (23:30 -0800)]
Merge pull request #6394 from dillaman/wip-13560
krbd: remove deprecated --quiet param from udevadm
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Tue, 10 Nov 2015 07:28:46 +0000 (23:28 -0800)]
Merge pull request #6508 from dillaman/wip-13726
librbd: deadlock while attempting to flush AIO requests
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Tue, 10 Nov 2015 07:27:08 +0000 (23:27 -0800)]
Merge pull request #6447 from dillaman/wip-13674
librbd: resize should only update image size within header
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
xiexingguo [Mon, 9 Nov 2015 14:14:09 +0000 (22:14 +0800)]
internal: remove unused local variables
Remove unused variables bl and bl2 in snap_list and ictx_refresh.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
xiexingguo [Sat, 7 Nov 2015 03:30:32 +0000 (11:30 +0800)]
librados: cast oid to object explicitly before call ioctx methods
Cast oid to object explicitly before call ioctx methods.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Yehuda Sadeh [Mon, 9 Nov 2015 23:26:12 +0000 (15:26 -0800)]
Merge pull request #6513 from ceph/revert-6419-wip-openssl
Revert
0374bb4a2f5054d606e4aba2d97b5e6765e781b0
xiexingguo [Sat, 7 Nov 2015 03:14:02 +0000 (11:14 +0800)]
IoCtxImpl: remove unused variable sName
remove unused local variable sName in rollback.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Yehuda Sadeh [Mon, 9 Nov 2015 23:24:29 +0000 (15:24 -0800)]
Yehuda Sadeh [Mon, 9 Nov 2015 21:56:29 +0000 (13:56 -0800)]
Merge pull request #6419 from ceph/wip-openssl
rgw: link against system openssl (instead of dlopen at runtime)
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Jason Dillaman [Mon, 9 Nov 2015 21:36:58 +0000 (16:36 -0500)]
Merge pull request #6453 from trociny/wip-2468
librbd: flush and invalidate cache via admin socket
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Mon, 9 Nov 2015 19:30:14 +0000 (14:30 -0500)]
Merge pull request #6511 from liewegas/wip-fix-kv
kv: fix bug in kv key optimization
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Yehuda Sadeh [Mon, 9 Nov 2015 19:03:40 +0000 (11:03 -0800)]
Merge branch 'wip-12955'
brian [Wed, 23 Sep 2015 14:49:36 +0000 (09:49 -0500)]
rgw: fix modification to index attrs when setting acls
Fixes: #12955
- add ACL change after initial population
- populate bufferlist with object attributes
Signed-off-by: Brian Felton <bjfelton@gmail.com>
Sage Weil [Mon, 9 Nov 2015 18:40:41 +0000 (13:40 -0500)]
kv: fix string ctor usage
When constructing a string from a char* there is only a single
length argument, no offset. The 3 argument variant we were using
was converting to a std::string first (an prematurely terminating
on \0).
Signed-off-by: Sage Weil <sage@redhat.com>
Yehuda Sadeh [Mon, 9 Nov 2015 18:38:46 +0000 (10:38 -0800)]
Merge pull request #6047 from Sandy4999/wip-13140
rgw: fix swift API returning incorrect account metadata
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Josh Durgin [Mon, 9 Nov 2015 18:19:09 +0000 (10:19 -0800)]
Merge pull request #6504 from dillaman/wip-13727
tests: fix typo in TestClsRbd.snapshots test case
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jason Dillaman [Mon, 9 Nov 2015 16:22:24 +0000 (11:22 -0500)]
librbd: fixed deadlock while attempting to flush AIO requests
In-flight AIO requests might force a flush if a snapshot was created
out-of-band. The flush completion was previously invoked asynchronously,
potentially via the same thread worker handling the AIO request. This
resulted in the flush operation deadlocking since it can't complete.
Fixes: #13726
Backport: infernalis, hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 9 Nov 2015 15:48:10 +0000 (10:48 -0500)]
tests: new test case to catch deadlock on RBD image refresh
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Mykola Golub [Tue, 3 Nov 2015 11:24:36 +0000 (13:24 +0200)]
tests: librbd: admin socket commands to flush and invalidate cache
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Tue, 3 Nov 2015 06:55:23 +0000 (08:55 +0200)]
librbd: flush and invalidate cache via admin socket
Fixes: #2468
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Wed, 4 Nov 2015 10:18:52 +0000 (12:18 +0200)]
librbd: perf counter for cache invalidates
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Sage Weil [Mon, 9 Nov 2015 14:10:37 +0000 (09:10 -0500)]
Merge pull request #6312 from liewegas/wip-kv
kv: optimize and clean up internal key/value interface
Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Jason Dillaman [Mon, 9 Nov 2015 14:06:05 +0000 (09:06 -0500)]
tests: fix typo in TestClsRbd.snapshots test case
Fixes: #13727
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Mon, 9 Nov 2015 14:04:25 +0000 (09:04 -0500)]
Merge pull request #6300 from XinzeChi/wip-throttle-max
common: fix reset max in Throttle using perf reset command
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Sage Weil [Mon, 9 Nov 2015 14:03:41 +0000 (09:03 -0500)]
Merge pull request #6364 from dillaman/wip-13491
osd: fix broken balance / localized read handling
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Sun, 8 Nov 2015 14:32:44 +0000 (09:32 -0500)]
tracing: fix librados signed/unsigned warnings
Signed-off-by: Sage Weil <sage@redhat.com>
Piotr Dałek [Thu, 29 Oct 2015 14:16:29 +0000 (15:16 +0100)]
os/osd: disable extra iterator validation
In a number of loops using ObjectMapIterator, the iterator is validated
twice, first as an loop break condition, then during iter->next() call.
Suppress the validation in next() method in those cases for better
performance.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Piotr Dałek [Mon, 19 Oct 2015 06:32:10 +0000 (08:32 +0200)]
os/KeyValueDB: don't call self.valid() from next() and prev()
In most loops using ObjectMapIteratorImpl, there is a call to valid()
followed by a call to next(), which calls valid() again. Calling
valid() alone is particularly expensive, so don't do it twice if
possible.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Piotr Dałek [Fri, 23 Oct 2015 13:46:20 +0000 (15:46 +0200)]
mon/MonitorDBStore: use single-key LevelDB::get() method
Make MonitorDBStore use single-key ::get() method for some performance
increase in heavy K/V workloads.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Piotr Dałek [Fri, 23 Oct 2015 13:44:47 +0000 (15:44 +0200)]
os/DBObjectMap: use single-key LevelDB::get method
Make FileStore use single-key ::get() method for some performance
increase in k/v-heavy workloads.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Piotr Dałek [Fri, 23 Oct 2015 13:22:52 +0000 (15:22 +0200)]
kv/LevelDBStore: simpler code for single-key fetches
Often there's a need to fetch value for a specified, single key. Publish
a new method in LevelDB that takes key and prefix and puts just value at
specified address, without the need for interim keysets or resultsets.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Piotr Dałek [Tue, 20 Oct 2015 13:11:08 +0000 (15:11 +0200)]
os/LevelDBStore: faster LevelDBTransactionImpl::set
This patch builds on Sage's idea to reduce bufferlist copying on
::set() calls. Initial patch reduced LevelDB's Slice generation
time from ~57ns to ~5ns in best-case scenario (bufferlist with
single bufferptr or contiguous bufferptrs), this patch reduces
slice generation time from ~57ns to ~11ns in worst case scenario
(under assumption that entire value length is at most 128KB),
leaving old code path for extremely-bad cases.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Sage Weil [Tue, 20 Oct 2015 12:49:57 +0000 (08:49 -0400)]
kv/RocksDBStore: do not Delete before Put
A put implicitly overwrites the previous value.
Signed-off-by: Sage Weil <sage@redhat.com>