]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agocmake: add gtest to ceph_test_snap_mapper 9887/head
Ali Maredia [Wed, 22 Jun 2016 21:41:59 +0000 (17:41 -0400)]
cmake: add gtest to ceph_test_snap_mapper

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: test_rbd_mirror_image_replay missing ContextCompletion.cc
Ali Maredia [Wed, 22 Jun 2016 21:43:28 +0000 (17:43 -0400)]
cmake: test_rbd_mirror_image_replay missing ContextCompletion.cc

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agocmake: link libradostriper with librados_objs
Kefu Chai [Thu, 23 Jun 2016 03:51:01 +0000 (11:51 +0800)]
cmake: link libradostriper with librados_objs

create an OBJECT target for libradostriper, so it is able to access the
internal symbols of librados.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: remove visibility flags from libcephfs,libradosstriper
Kefu Chai [Thu, 23 Jun 2016 02:53:39 +0000 (10:53 +0800)]
cmake: remove visibility flags from libcephfs,libradosstriper

because libradosstriper does not put the `__attribute__ ((visibility
("default")))` specifier on the exported class/methods. we cannot
add the visibility to this library yet. the same applies to libcephfs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: move rados_snap_set_diff_obj into librbd_internal
Kefu Chai [Thu, 23 Jun 2016 02:40:28 +0000 (10:40 +0800)]
cmake: move rados_snap_set_diff_obj into librbd_internal

ceph_test_librbd use it and links directly against librbd_internal
instead of against librbd

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9207 from rjfd/wip-15670
Jason Dillaman [Wed, 22 Jun 2016 22:03:22 +0000 (18:03 -0400)]
Merge pull request #9207 from rjfd/wip-15670

rbd-mirror: image resync

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9626 from liewegas/wip-bluestore-2q
Sage Weil [Wed, 22 Jun 2016 19:09:23 +0000 (15:09 -0400)]
Merge pull request #9626 from liewegas/wip-bluestore-2q

os/bluestore: implement 2Q buffer cache policy

9 years agoceph_test_objectstore: define matrixes over config options and write sizes 9626/head
Sage Weil [Wed, 22 Jun 2016 15:21:54 +0000 (11:21 -0400)]
ceph_test_objectstore: define matrixes over config options and write sizes

These replace a few of the ad hoc synthetic tests.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: handle bnode removal race
Sage Weil [Wed, 22 Jun 2016 19:00:48 +0000 (15:00 -0400)]
os/bluestore: handle bnode removal race

One thread might try to drop a bnode while another does a lookup and
retakes a ref:

 1- drop bnode ref (-> 0)
 2- take bnode_set lock, do lookup
 2- take bnode ref (-> 1)
 2- drop lock
 1- take bnode_set lock
 1- remove from set
 1- drop lock

Fix this race by rechecking the ref count while we are holding the lock.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoRevert "msg: default ms type = async"
Samuel Just [Wed, 22 Jun 2016 18:21:16 +0000 (11:21 -0700)]
Revert "msg: default ms type = async"

Not ready quite yet, causing too many test failures.

This reverts commit 928887a09c2cb9944531165fcf4aa9026b49a3d9.
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9451 from s09816/master
Jason Dillaman [Wed, 22 Jun 2016 18:02:42 +0000 (14:02 -0400)]
Merge pull request #9451 from s09816/master

librbd: enable/disable of features is not allowed when already enabled/disabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9715 from trociny/wip-16321
Jason Dillaman [Wed, 22 Jun 2016 18:02:01 +0000 (14:02 -0400)]
Merge pull request #9715 from trociny/wip-16321

librbd: re-register watch on old format image rename

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9874 from athanatos/wip-16185
Samuel Just [Wed, 22 Jun 2016 17:26:49 +0000 (10:26 -0700)]
Merge pull request #9874 from athanatos/wip-16185

OSDMonitor::prepare_pgtemp: only update up_thru if newer

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9875 from athanatos/wip-16127
Samuel Just [Wed, 22 Jun 2016 17:26:35 +0000 (10:26 -0700)]
Merge pull request #9875 from athanatos/wip-16127

OSDMonitor: drop pg temp from sources other than the current primary

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9850 from dillaman/wip-16404
Mykola Golub [Wed, 22 Jun 2016 17:12:59 +0000 (20:12 +0300)]
Merge pull request #9850 from dillaman/wip-16404

librbd: flag image as updated after proxying maintenance op

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #8370 from jack-changtao/pg_del
Samuel Just [Wed, 22 Jun 2016 16:55:23 +0000 (09:55 -0700)]
Merge pull request #8370 from jack-changtao/pg_del

osd/PG: cleanup: delete find_best_info again

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #9802 from yuyuyu101/wip-16378
Samuel Just [Wed, 22 Jun 2016 16:51:01 +0000 (09:51 -0700)]
Merge pull request #9802 from yuyuyu101/wip-16378

msg/async: fix test stuck into STATE_WAIT

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #8195 from tchaikov/wip-cmake-visibility
Kefu Chai [Wed, 22 Jun 2016 15:37:38 +0000 (23:37 +0800)]
Merge pull request #8195 from tchaikov/wip-cmake-visibility

cmake changes

Reviewed-by: Ali Maredia <amaredia@redhat.com>
9 years agoos/bluestore: drop unneeded conditional in LRUCache trim
Sage Weil [Tue, 21 Jun 2016 14:15:12 +0000 (10:15 -0400)]
os/bluestore: drop unneeded conditional in LRUCache trim

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: protect BnodeSet with mutex
Sage Weil [Mon, 20 Jun 2016 15:35:38 +0000 (11:35 -0400)]
os/bluestore: protect BnodeSet with mutex

The onodes (and thus bnodes) may not get destroyed with the collection
lock held, which means we cannot rely on that lock to protected the
bnodeset structure.  Give BnodeSet it's own mutex to protect itself.

While we are at it, make dummy a member so we can avoid constructing it
each time.  This is now safe since we are under the new lock.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: remove bluestore_cache_tails
Sage Weil [Mon, 20 Jun 2016 14:55:28 +0000 (10:55 -0400)]
os/bluestore: remove bluestore_cache_tails

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix 8-bit csum
Sage Weil [Mon, 20 Jun 2016 14:52:50 +0000 (10:52 -0400)]
os/bluestore: fix 8-bit csum

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: default to 512MB cache, buffered reads
Sage Weil [Sun, 19 Jun 2016 14:14:11 +0000 (10:14 -0400)]
os/bluestore: default to 512MB cache, buffered reads

Test with small cache to exercise trimming.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: 2q by default
Sage Weil [Sun, 19 Jun 2016 14:02:02 +0000 (10:02 -0400)]
os/bluestore: 2q by default

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: implement 2Q buffer cache policy
Sage Weil [Fri, 10 Jun 2016 15:37:52 +0000 (11:37 -0400)]
os/bluestore: implement 2Q buffer cache policy

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: move merge operator
Sage Weil [Mon, 20 Jun 2016 13:59:28 +0000 (09:59 -0400)]
os/bluestore: move merge operator

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: buffer cache_private field, returned by discard
Sage Weil [Fri, 10 Jun 2016 15:36:05 +0000 (11:36 -0400)]
os/bluestore: buffer cache_private field, returned by discard

2Q (and likly MQ?) need to know when we re-add a block that was previously
evicted.  We track these as STATE_EMPTY buffers, but we throw them out
with _discard before we add the (re)read data into the BufferSpace. Add
a Buffer field called cache_private that is returned by discard (actually,
a max over everything that is discarded) that a cache implementation can
use to discover it has re-read a recently evicted item.

The Cache implemention needs to set cache_private values such that the MAX
over them is what it actually wants...

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: include buffer * in operator<<
Sage Weil [Fri, 10 Jun 2016 15:33:10 +0000 (11:33 -0400)]
os/bluestore: include buffer * in operator<<

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: cache: simplify lru trim
Sage Weil [Fri, 10 Jun 2016 15:23:27 +0000 (11:23 -0400)]
os/bluestore: cache: simplify lru trim

Everything in the LRU is clean.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: make Cache implementation configurable
Sage Weil [Fri, 10 Jun 2016 13:33:20 +0000 (09:33 -0400)]
os/bluestore: make Cache implementation configurable

For now we only do "lru" (LRUCache).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: cache: define 'empty' buffer
Sage Weil [Fri, 10 Jun 2016 13:24:10 +0000 (09:24 -0400)]
os/bluestore: cache: define 'empty' buffer

This is a buffer with no data.  It's a placeholder that is there to be used
by cache replacement algorithms like 2Q and MQ that needs history for
trimmed buffers.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: cache: keep writing buffers out of LRU
Sage Weil [Fri, 10 Jun 2016 13:10:30 +0000 (09:10 -0400)]
os/bluestore: cache: keep writing buffers out of LRU

Don't bother putting a writing buffer in the LRU until it is clean (and
trimmable).  Otherwise, we end up with writing items near the end of the
LRU that we have to iterate over on every trim() invocation.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: clean up Cache::trim
Sage Weil [Fri, 10 Jun 2016 13:06:52 +0000 (09:06 -0400)]
os/bluestore: clean up Cache::trim

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: cache: control insert point of new onodes
Sage Weil [Fri, 10 Jun 2016 12:51:47 +0000 (08:51 -0400)]
os/bluestore: cache: control insert point of new onodes

Not used yet.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: cache: control insertion point of new buffers
Sage Weil [Fri, 10 Jun 2016 12:51:13 +0000 (08:51 -0400)]
os/bluestore: cache: control insertion point of new buffers

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: make buffer lru private
Sage Weil [Fri, 10 Jun 2016 12:38:55 +0000 (08:38 -0400)]
os/bluestore: make buffer lru private

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: make onode lru private
Sage Weil [Fri, 10 Jun 2016 12:33:42 +0000 (08:33 -0400)]
os/bluestore: make onode lru private

Add cache->onode_lru.push_back(*po->second).  Make LRU private.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix locking for _dump_blob_map
Sage Weil [Wed, 22 Jun 2016 15:26:52 +0000 (11:26 -0400)]
os/bluestore: fix locking for _dump_blob_map

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agocmake: use ${CEPH_SHARED} when adding libradosstriper 8195/head
Kefu Chai [Wed, 22 Jun 2016 15:19:02 +0000 (23:19 +0800)]
cmake: use ${CEPH_SHARED} when adding libradosstriper

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9827 from liewegas/wip-bluestore-invalidate
Sage Weil [Wed, 22 Jun 2016 14:56:02 +0000 (10:56 -0400)]
Merge pull request #9827 from liewegas/wip-bluestore-invalidate

os/bluestore: discard unreferenced buffers as they are overwritten

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9868 from liewegas/wip-bluestore-lba
Sage Weil [Wed, 22 Jun 2016 14:55:19 +0000 (10:55 -0400)]
Merge pull request #9868 from liewegas/wip-bluestore-lba

include/small_encoding: fix lba encoding with many low zeros

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9863 from trociny/fixup-comp-warn
Jason Dillaman [Wed, 22 Jun 2016 14:43:41 +0000 (10:43 -0400)]
Merge pull request #9863 from trociny/fixup-comp-warn

test: fix compilation warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9821 from dx9/wip-ac-alpine
Kefu Chai [Wed, 22 Jun 2016 14:42:46 +0000 (22:42 +0800)]
Merge pull request #9821 from dx9/wip-ac-alpine

configure.ac: add --with-reentrant-strsignal and --with-thread-safe-r…

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoos/bluestore: discard unreferenced buffers as they are overwritten 9827/head
Sage Weil [Wed, 22 Jun 2016 14:30:22 +0000 (10:30 -0400)]
os/bluestore: discard unreferenced buffers as they are overwritten

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoinclude/small_encoding: fix lba encoding with many low zeros 9868/head
Sage Weil [Wed, 22 Jun 2016 14:28:28 +0000 (10:28 -0400)]
include/small_encoding: fix lba encoding with many low zeros

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomsg/async: recover lock to continue later 9802/head
Haomai Wang [Wed, 22 Jun 2016 14:26:46 +0000 (22:26 +0800)]
msg/async: recover lock to continue later

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #9865 from liewegas/wip-bluestore-encoding
Sage Weil [Wed, 22 Jun 2016 14:19:18 +0000 (10:19 -0400)]
Merge pull request #9865 from liewegas/wip-bluestore-encoding

os/bluestore: fix blob_t encoding test cases, and clean up initialization

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoconfigure.ac: add --with-reentrant-strsignal and --with-thread-safe-res-query options... 9821/head
John Coyle [Sun, 6 Mar 2016 19:00:49 +0000 (14:00 -0500)]
configure.ac: add --with-reentrant-strsignal and --with-thread-safe-res-query options for Alpine support

Signed-off-by: John Coyle <dx9err@gmail.com>
9 years agotest: fix compilation warnings 9863/head
Mykola Golub [Wed, 22 Jun 2016 11:55:51 +0000 (14:55 +0300)]
test: fix compilation warnings

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoos/bluestore/bluestore_types: fix blob initializers, test instances 9865/head
Sage Weil [Wed, 22 Jun 2016 13:23:31 +0000 (09:23 -0400)]
os/bluestore/bluestore_types: fix blob initializers, test instances

- initialize members in c++11 style
- drop pextent ctor
- fix up test instances
- make csum_order default to 0, so it matches the
  CSUM_NONE decoding logic.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore/bluestore_types: drop unused var
Sage Weil [Wed, 22 Jun 2016 12:41:05 +0000 (08:41 -0400)]
os/bluestore/bluestore_types: drop unused var

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9813 from jcsp/wip-kernel-doc
John Spray [Wed, 22 Jun 2016 08:08:49 +0000 (09:08 +0100)]
Merge pull request #9813 from jcsp/wip-kernel-doc

doc/cephfs: add advice about kernel versions

9 years agoMerge pull request #9823 from dillaman/wip-16362
Mykola Golub [Wed, 22 Jun 2016 06:50:46 +0000 (09:50 +0300)]
Merge pull request #9823 from dillaman/wip-16362

rbd-mirror: keep events from different epochs independent

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agocmake: include Group.cc in rbd cli
Kefu Chai [Wed, 22 Jun 2016 03:21:22 +0000 (11:21 +0800)]
cmake: include Group.cc in rbd cli

to match with automake, and the "group" command is missing in the cmake
build of "rbd" cli tool.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: install dso into ${CMAKE_INSTALL_LIBDIR} instead of "lib"
Kefu Chai [Wed, 22 Jun 2016 02:30:40 +0000 (10:30 +0800)]
cmake: install dso into ${CMAKE_INSTALL_LIBDIR} instead of "lib"

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: add visibility flags for exported dso
Kefu Chai [Fri, 18 Mar 2016 05:03:45 +0000 (13:03 +0800)]
cmake: add visibility flags for exported dso

* no regression found, and there's a substantial reduction in the size of
  generated librados library (both stripped and not).
* also remove the duplicated set_target_properties(librbd...) command

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: move snap_set_diff.cc out of librados
Kefu Chai [Wed, 22 Jun 2016 03:04:20 +0000 (11:04 +0800)]
cmake: move snap_set_diff.cc out of librados

snap_set_diff.cc is used internally and is not exposed via librados. we
cannot use the function implemented in it by linking against librados. so
compile it as an OBJECT target and link against it individualy if
necessary.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge branch 'wip-dmick-install-deps-master'
Josh Durgin [Tue, 21 Jun 2016 23:38:58 +0000 (16:38 -0700)]
Merge branch 'wip-dmick-install-deps-master'

install-deps.sh: use mk-build-deps instead of processing control

Reviewed-by: Erwan Velu <erwan@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoinstall-deps.sh: use mk-build-deps instead of processing control
Dan Mick [Thu, 24 Mar 2016 00:43:53 +0000 (17:43 -0700)]
install-deps.sh: use mk-build-deps instead of processing control

mk-build-deps is designed to handle installing build dependencies;
use that instead, so '|' indications are handled properly.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoMerge pull request #9791 from ceph/wip-cmake-compile-flags
Casey Bodley [Tue, 21 Jun 2016 19:22:44 +0000 (15:22 -0400)]
Merge pull request #9791 from ceph/wip-cmake-compile-flags

cmake: Wip cmake compile flags

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9481 from yehudasa/wip-rgw-hold-lease-1
Casey Bodley [Tue, 21 Jun 2016 19:21:33 +0000 (15:21 -0400)]
Merge pull request #9481 from yehudasa/wip-rgw-hold-lease-1

rgw: stop bucket lease only after draining object sync operations

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agocmake: CMAKE_BUILD_TYPE defaulted to RelWithDebInfo 9791/head
Ali Maredia [Fri, 17 Jun 2016 19:55:52 +0000 (15:55 -0400)]
cmake: CMAKE_BUILD_TYPE defaulted to RelWithDebInfo

Default build type is RelWithDebInfo unless
CMAKE_BUILD_TYPE is specified when running the
`cmake` command.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoMerge pull request #9066 from yangdongsheng/rbd_bench
Mykola Golub [Tue, 21 Jun 2016 18:59:28 +0000 (21:59 +0300)]
Merge pull request #9066 from yangdongsheng/rbd_bench

rbd: introduce a simple bench for read

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agolibrbd: flag image as updated after proxying maintenance op 9850/head
Jason Dillaman [Tue, 21 Jun 2016 18:56:43 +0000 (14:56 -0400)]
librbd: flag image as updated after proxying maintenance op

Fixes: http://tracker.ceph.com/issues/16404
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agocmake: eliminate FORTIFY_SOURCE warnings
Ali Maredia [Fri, 17 Jun 2016 19:31:45 +0000 (15:31 -0400)]
cmake: eliminate FORTIFY_SOURCE warnings

"-werr" was added to CHECK_C_COMPILER_FLAG to
make sure FORTIFY_SOURCE is only turned on if
the flag generates no warnings.

Added "-U_FORTIFY_SOURCE" to CMAKE_C_FLAGS to
mimic PR #9761.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoMerge pull request #9728 from liewegas/wip-bluestore-encoding
Sage Weil [Tue, 21 Jun 2016 17:30:53 +0000 (13:30 -0400)]
Merge pull request #9728 from liewegas/wip-bluestore-encoding

os/bluestore: space efficient int encoding

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agorbd-mirror: keep events from different epochs independent 9823/head
Jason Dillaman [Mon, 20 Jun 2016 15:41:31 +0000 (11:41 -0400)]
rbd-mirror: keep events from different epochs independent

Fixes: http://tracker.ceph.com/issues/16362
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoos/bluestore/bluestore_types: delta encode for ref_map offsets 9728/head
Sage Weil [Tue, 21 Jun 2016 16:37:47 +0000 (12:37 -0400)]
os/bluestore/bluestore_types: delta encode for ref_map offsets

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: make blob csum info encoding conditional
Sage Weil [Sun, 19 Jun 2016 13:05:30 +0000 (09:05 -0400)]
os/bluestore: make blob csum info encoding conditional

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: use FLAG_CSUM to indicate if checksums are present
Sage Weil [Sun, 19 Jun 2016 13:05:01 +0000 (09:05 -0400)]
os/bluestore: use FLAG_CSUM to indicate if checksums are present

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fsck: print intervals in hex
Sage Weil [Sun, 19 Jun 2016 13:12:09 +0000 (09:12 -0400)]
os/bluestore: fsck: print intervals in hex

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: use varint for pextent count
Sage Weil [Sun, 19 Jun 2016 13:02:18 +0000 (09:02 -0400)]
os/bluestore: use varint for pextent count

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: varint or lba encode pextent, lextent, ref_map, onode
Sage Weil [Sun, 19 Jun 2016 10:29:40 +0000 (06:29 -0400)]
os/bluestore: varint or lba encode pextent, lextent, ref_map, onode

Certainly not done here, but this is a start.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoinclude/small_encoding: small encode/decode helpers
Sage Weil [Sat, 18 Jun 2016 16:54:10 +0000 (12:54 -0400)]
include/small_encoding: small encode/decode helpers

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9819 from dillaman/wip-16363
Mykola Golub [Tue, 21 Jun 2016 16:50:28 +0000 (19:50 +0300)]
Merge pull request #9819 from dillaman/wip-16363

librbd: fix lockdep issue when duplicate event detected

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9816 from dillaman/wip-16198
Mykola Golub [Tue, 21 Jun 2016 16:49:37 +0000 (19:49 +0300)]
Merge pull request #9816 from dillaman/wip-16198

librbd: potential race when replaying journal ops

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9788 from dillaman/wip-16230
Mykola Golub [Tue, 21 Jun 2016 16:48:47 +0000 (19:48 +0300)]
Merge pull request #9788 from dillaman/wip-16230

rbd-mirror: potential race condition accessing local image journal

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9787 from batrick/mds-rename-enotempty
John Spray [Tue, 21 Jun 2016 14:47:22 +0000 (15:47 +0100)]
Merge pull request #9787 from batrick/mds-rename-enotempty

mds: improve comments for ENOTEMPTY checks

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9840 from xiexingguo/xxg-wip-fix-bmap-fm
Sage Weil [Tue, 21 Jun 2016 14:26:06 +0000 (10:26 -0400)]
Merge pull request #9840 from xiexingguo/xxg-wip-fix-bmap-fm

os/bluestore: minor improvements for bitmap-freelist-manager

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agomsg/async/AsyncConnection: shorter handshake step deps
Haomai Wang [Sun, 19 Jun 2016 18:32:10 +0000 (02:32 +0800)]
msg/async/AsyncConnection: shorter handshake step deps

Originally connect side will wait for accept side sending banner, actually
we don't need this logic to ensure anything.

So connect side will issue banner after tcp handshake straightway. It will
help for reducing session handshake period, then it avoid peer side drop this
connection in low level but connect side don't know right now.

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #9815 from xiexingguo/xxg-wip-fix-blue-cache
Sage Weil [Tue, 21 Jun 2016 13:55:01 +0000 (09:55 -0400)]
Merge pull request #9815 from xiexingguo/xxg-wip-fix-blue-cache

os/bluestore: cache relevant cleanups

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: make bytes_per_key a global member 9840/head
xie xingguo [Tue, 21 Jun 2016 07:38:36 +0000 (15:38 +0800)]
os/bluestore: make bytes_per_key a global member

So we don't have to figure it out everywhere.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: fix a typo(nonexistant->nonexistent)
xie xingguo [Tue, 21 Jun 2016 06:33:32 +0000 (14:33 +0800)]
os/bluestore: fix a typo(nonexistant->nonexistent)

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: simplify BufferSpace::read() a little 9815/head
xie xingguo [Mon, 20 Jun 2016 12:16:33 +0000 (20:16 +0800)]
os/bluestore: simplify BufferSpace::read() a little

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: simplify BufferSpace::read() a little
xie xingguo [Mon, 20 Jun 2016 12:02:41 +0000 (20:02 +0800)]
os/bluestore: simplify BufferSpace::read() a little

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: change type of length of region_t from uint32_t to uint64_t
xie xingguo [Mon, 20 Jun 2016 10:56:51 +0000 (18:56 +0800)]
os/bluestore: change type of length of region_t from uint32_t to uint64_t

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoos/bluestore: add sanity check when try to rm_buffer
xie xingguo [Mon, 20 Jun 2016 10:52:51 +0000 (18:52 +0800)]
os/bluestore: add sanity check when try to rm_buffer

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9828 from liewegas/wip-bluestore-read-before-write
Sage Weil [Tue, 21 Jun 2016 13:31:00 +0000 (09:31 -0400)]
Merge pull request #9828 from liewegas/wip-bluestore-read-before-write

os/bluestore: limit read-amp on overwrite

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
9 years agoMerge pull request #9826 from liewegas/wip-bluefs
Sage Weil [Tue, 21 Jun 2016 13:30:18 +0000 (09:30 -0400)]
Merge pull request #9826 from liewegas/wip-bluefs

os/bluestore/BlueFS: instrument which file types we write to

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
9 years agoMerge pull request #9834 from tchaikov/wip-silence-warnings
Kefu Chai [Tue, 21 Jun 2016 10:53:37 +0000 (18:53 +0800)]
Merge pull request #9834 from tchaikov/wip-silence-warnings

test, bluestore: silence warnings

Reviewed-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
9 years agoMerge pull request #9635 from liewegas/wip-make-dist
Kefu Chai [Tue, 21 Jun 2016 10:17:25 +0000 (18:17 +0800)]
Merge pull request #9635 from liewegas/wip-make-dist

make-dist: include src/.git_version and src/ceph_ver.h

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9836 from dx9/wip-hardcoded-tcmalloc
Kefu Chai [Tue, 21 Jun 2016 09:02:21 +0000 (17:02 +0800)]
Merge pull request #9836 from dx9/wip-hardcoded-tcmalloc

cmake: fix hard coded tcmalloc lib

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agocmake: fix hard coded tcmalloc lib 9836/head
John Coyle [Sat, 27 Feb 2016 19:20:22 +0000 (14:20 -0500)]
cmake: fix hard coded tcmalloc lib

Signed-off-by: John Coyle <dx9err@gmail.com>
9 years agoMerge pull request #9670 from ceph/wip-debian-clean
Kefu Chai [Tue, 21 Jun 2016 00:46:18 +0000 (08:46 +0800)]
Merge pull request #9670 from ceph/wip-debian-clean

debian: silence couple warnings

Reviewed-by: Dan Mick <dmick@redhat.com>
9 years agobluestore/BitAllocator: silence warnings of method hidden 9834/head
Kefu Chai [Mon, 20 Jun 2016 23:18:35 +0000 (07:18 +0800)]
bluestore/BitAllocator: silence warnings of method hidden

is_allocated(int64_t *blocks, int64_t num_blocks, int blk_off) only gets
called in BitMapAreaIN and its child classes. so it's safe to move this
method down to BitMapAreaIN.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoceph_test_objectstore: remove unused function
Kefu Chai [Mon, 20 Jun 2016 22:52:37 +0000 (06:52 +0800)]
ceph_test_objectstore: remove unused function

its caller was removed in 8a42e61

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9832 from ceph/wip-cmake-librbd-unittest-fix
Sage Weil [Mon, 20 Jun 2016 21:28:16 +0000 (17:28 -0400)]
Merge pull request #9832 from ceph/wip-cmake-librbd-unittest-fix

cmake: unittest_librbd missing a source file

9 years agocmake: unittest_librbd missing a source file 9832/head
Ali Maredia [Mon, 20 Jun 2016 21:23:37 +0000 (17:23 -0400)]
cmake: unittest_librbd missing a source file

src/test/librbd/test_ConsistencyGroups.cc missing
from ${unittest_librbd_srcs}.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoMerge pull request #9531 from yehudasa/wip-16175
Casey Bodley [Mon, 20 Jun 2016 20:11:51 +0000 (16:11 -0400)]
Merge pull request #9531 from yehudasa/wip-16175

rgw: data sync debug logging

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9676 from efirs/fix_bitmap_freelist
Sage Weil [Mon, 20 Jun 2016 19:58:04 +0000 (15:58 -0400)]
Merge pull request #9676 from efirs/fix_bitmap_freelist

os/bluestore: Fix enumeration when only single key in BitmapFreelistManager