]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoos/bluestore: avoid comparing object key and name twice 11274/head
xie xingguo [Fri, 30 Sep 2016 06:53:28 +0000 (14:53 +0800)]
os/bluestore: avoid comparing object key and name twice

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: use id of shard_id_t for encoding
xie xingguo [Fri, 30 Sep 2016 06:28:02 +0000 (14:28 +0800)]
os/bluestore: use id of shard_id_t for encoding

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: kill struct DeferredCsum
xie xingguo [Fri, 30 Sep 2016 05:58:15 +0000 (13:58 +0800)]
os/bluestore: kill struct DeferredCsum

Which is dead, and kill some other dead lines too.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11267 from liewegas/wip-bluestore-ref-map
Sage Weil [Fri, 30 Sep 2016 02:22:04 +0000 (21:22 -0500)]
Merge pull request #11267 from liewegas/wip-bluestore-ref-map

os/bluestore/bluestore_types: uint64_t for ref_map

8 years agoceph_test_objecstore: use 1TB block device 11267/head
Sage Weil [Thu, 29 Sep 2016 21:46:42 +0000 (17:46 -0400)]
ceph_test_objecstore: use 1TB block device

Big enough to get into 32-bit LBAs.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/bluestore_types: uint64_t for ref_map
Sage Weil [Thu, 29 Sep 2016 21:43:04 +0000 (17:43 -0400)]
os/bluestore/bluestore_types: uint64_t for ref_map

We use this to track raw extents on disk for SharedBlob.  We
also use it for the in-memory Blob with the blob namespace, but
using uint64_t intead of uint32_t doesn't hurt us there.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11266 from stiopaa1/osd_passSharedPtrByConstRef
Sage Weil [Thu, 29 Sep 2016 20:17:09 +0000 (15:17 -0500)]
Merge pull request #11266 from stiopaa1/osd_passSharedPtrByConstRef

osd: pass shared_ptr by const reference

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11137 from jcsp/wip-17173
John Spray [Thu, 29 Sep 2016 15:38:27 +0000 (16:38 +0100)]
Merge pull request #11137 from jcsp/wip-17173

mds: catch duplicates in DamageTable

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
8 years agoMerge pull request #11244 from xiexingguo/xxg-wip-bluestore-0928
Sage Weil [Thu, 29 Sep 2016 13:45:29 +0000 (08:45 -0500)]
Merge pull request #11244 from xiexingguo/xxg-wip-bluestore-0928

os/bluestore: upgrade compression settings to atomics

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: upgrade compression settings to atomics 11244/head
xie xingguo [Wed, 28 Sep 2016 00:49:34 +0000 (08:49 +0800)]
os/bluestore: upgrade compression settings to atomics

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoosd: pass shared_ptr by const reference 11266/head
Michal Jarzabek [Wed, 28 Sep 2016 22:18:47 +0000 (23:18 +0100)]
osd: pass shared_ptr by const reference

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #11185 from dillaman/wip-17355
Mykola Golub [Wed, 28 Sep 2016 20:12:44 +0000 (23:12 +0300)]
Merge pull request #11185 from dillaman/wip-17355

rbd-mirror: quiesce in-flight event commits before shut down

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11250 from liewegas/wip-bluestore-leaks
Sage Weil [Wed, 28 Sep 2016 19:29:22 +0000 (14:29 -0500)]
Merge pull request #11250 from liewegas/wip-bluestore-leaks

os/bluestore: fix leaks in our use of rocksdb

8 years agoos/bluestore: do not leak when using EnvMirror 11250/head
Sage Weil [Wed, 28 Sep 2016 17:56:51 +0000 (13:56 -0400)]
os/bluestore: do not leak when using EnvMirror

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorocksdb: include EnvMirror leak fixes
Sage Weil [Wed, 28 Sep 2016 17:56:40 +0000 (13:56 -0400)]
rocksdb: include EnvMirror leak fixes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11180 from liewegas/wip-mon-forward
Gregory Farnum [Wed, 28 Sep 2016 17:28:56 +0000 (10:28 -0700)]
Merge pull request #11180 from liewegas/wip-mon-forward

messages/MForward: fix encoding features

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agomessages/MForward: fix encoding features 11180/head
Sage Weil [Wed, 28 Sep 2016 15:44:28 +0000 (11:44 -0400)]
messages/MForward: fix encoding features

We were encoding the message with the sending client's
features, which makes no sense: we need to encode with
the recipient's features so that it can decode the
message.

The simplest way to fix this is to rip out the bizarre
msg_bl handling code and simply keep a decoded Message
reference, and encode it when we send.

We encode the encapsulated message with the intersection
of the target mon's features and the sending client's
features.  This probably doesn't matter, but it's
conceivable that there is some feature-dependent
behavior in the message encode/decode that is important.

Fixes: http://tracker.ceph.com/issues/17365
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11243 from liewegas/wip-bluestore-deferred-csum
Sage Weil [Wed, 28 Sep 2016 15:40:43 +0000 (10:40 -0500)]
Merge pull request #11243 from liewegas/wip-bluestore-deferred-csum

os/bluestore: remove deferred_csum machinery

8 years agoMerge pull request #11113 from yuyuyu101/wip-fix-filestore-clone
Sage Weil [Wed, 28 Sep 2016 15:39:43 +0000 (10:39 -0500)]
Merge pull request #11113 from yuyuyu101/wip-fix-filestore-clone

os/filestore: disable use of splice by default

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #9652 from stiopaa1/osdc_ObjectCacher_constMember
Sage Weil [Wed, 28 Sep 2016 15:06:46 +0000 (10:06 -0500)]
Merge pull request #9652 from stiopaa1/osdc_ObjectCacher_constMember

osdc/ObjectCacher.h: add const to member functions

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11248 from mikulely/cleanup-vstart-doc
Sage Weil [Wed, 28 Sep 2016 14:29:39 +0000 (09:29 -0500)]
Merge pull request #11248 from mikulely/cleanup-vstart-doc

doc: cleanup outdated radosgw description

8 years agoMerge pull request #11217 from ceph/wip-17395-rbdmap-permissions
Sage Weil [Wed, 28 Sep 2016 14:20:06 +0000 (09:20 -0500)]
Merge pull request #11217 from ceph/wip-17395-rbdmap-permissions

rpm: fix permissions for /etc/ceph/rbdmap

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #11240 from liewegas/wip-bluestore-assert
Sage Weil [Wed, 28 Sep 2016 14:13:20 +0000 (09:13 -0500)]
Merge pull request #11240 from liewegas/wip-bluestore-assert

os/bluestore: add assert to compress_extent_map

8 years agoMerge pull request #11245 from xiexingguo/xxg-wip-bluestore-bsearch-shard
Sage Weil [Wed, 28 Sep 2016 14:12:50 +0000 (09:12 -0500)]
Merge pull request #11245 from xiexingguo/xxg-wip-bluestore-bsearch-shard

os/bluestore: binary search specified shard

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11235 from xiexingguo/xxg-wip-bluestore-0926
Sage Weil [Wed, 28 Sep 2016 13:56:47 +0000 (08:56 -0500)]
Merge pull request #11235 from xiexingguo/xxg-wip-bluestore-0926

os/bluestore: more cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11247 from majianpeng/msg-async-cleanup
Haomai Wang [Wed, 28 Sep 2016 13:36:21 +0000 (21:36 +0800)]
Merge pull request #11247 from majianpeng/msg-async-cleanup

msg/async: remove unused code.

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agomsg/async: remove unused code. 11247/head
Jianpeng Ma [Wed, 28 Sep 2016 14:32:48 +0000 (22:32 +0800)]
msg/async: remove unused code.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
8 years agoMerge pull request #10980 from trociny/wip-16213
Jason Dillaman [Wed, 28 Sep 2016 13:06:29 +0000 (09:06 -0400)]
Merge pull request #10980 from trociny/wip-16213

rbd-mirror: replicate dynamic feature updates

Reviewed-by: Jason Dillaman <dillamana@redhat.com>
8 years agolibrbd: potential null pointer dereference when requesting exclusive lock 10980/head
Mykola Golub [Tue, 27 Sep 2016 13:43:50 +0000 (16:43 +0300)]
librbd: potential null pointer dereference when requesting exclusive lock

m_require_lock_on_read should be cleared when holding owner_lock.

For safety, also check that exclusive_lock is not null.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: interlock image state machine and update features operations
Mykola Golub [Wed, 21 Sep 2016 19:45:04 +0000 (22:45 +0300)]
librbd: interlock image state machine and update features operations

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: use counter to track exclusive lock block/unblock requests
Mykola Golub [Tue, 20 Sep 2016 13:45:41 +0000 (16:45 +0300)]
librbd: use counter to track exclusive lock block/unblock requests

It's possible the watch/notify message is duplicated resulting in two
concurrent block_requests() call.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror: replicate dynamic feature updates
Mykola Golub [Wed, 14 Sep 2016 18:55:16 +0000 (21:55 +0300)]
rbd-mirror: replicate dynamic feature updates

Fixes: http://tracker.ceph.com/issues/16213
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: async state machine to enable/disable image features
Mykola Golub [Wed, 31 Aug 2016 19:54:05 +0000 (22:54 +0300)]
librbd: async state machine to enable/disable image features

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: templetize journal StandardPolicy
Mykola Golub [Mon, 19 Sep 2016 06:39:26 +0000 (09:39 +0300)]
librbd: templetize journal StandardPolicy

It will be needed for unit tests with a mocked ImageCtx.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: allow to call append_disabled for DisabledPolicy
Mykola Golub [Tue, 13 Sep 2016 09:42:14 +0000 (12:42 +0300)]
librbd: allow to call append_disabled for DisabledPolicy

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: async methods to enable/disable mirroring
Mykola Golub [Wed, 31 Aug 2016 19:44:24 +0000 (22:44 +0300)]
librbd: async methods to enable/disable mirroring

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: async method to check journal tag owner
Mykola Golub [Wed, 31 Aug 2016 19:49:36 +0000 (22:49 +0300)]
librbd: async method to check journal tag owner

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: async image set flags method
Mykola Golub [Wed, 31 Aug 2016 19:42:20 +0000 (22:42 +0300)]
librbd: async image set flags method

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agolibrbd: async methods to create/remove object map
Mykola Golub [Wed, 31 Aug 2016 19:39:20 +0000 (22:39 +0300)]
librbd: async methods to create/remove object map

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agocls/rbd: alow to call set_features asynchronously
Mykola Golub [Wed, 31 Aug 2016 19:30:24 +0000 (22:30 +0300)]
cls/rbd: alow to call set_features asynchronously

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agocls/journal: async client_list method
Mykola Golub [Wed, 31 Aug 2016 19:27:53 +0000 (22:27 +0300)]
cls/journal: async client_list method

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11120 from renhwztetecs/renhw-wip-mds-server
John Spray [Wed, 28 Sep 2016 11:14:08 +0000 (12:14 +0100)]
Merge pull request #11120 from renhwztetecs/renhw-wip-mds-server

mds/server: clean up handle_client_open()

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11078 from ukernel/wip-17271
John Spray [Wed, 28 Sep 2016 11:12:41 +0000 (12:12 +0100)]
Merge pull request #11078 from ukernel/wip-17271

mds: remove fail-safe queueing replay request

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11225 from ukernel/wip-17392
John Spray [Wed, 28 Sep 2016 11:10:13 +0000 (12:10 +0100)]
Merge pull request #11225 from ukernel/wip-17392

client: protect InodeRef with client_lock

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agodoc: cleanup outdated radosgw description 11248/head
Jiaying Ren [Wed, 28 Sep 2016 08:47:11 +0000 (16:47 +0800)]
doc: cleanup outdated radosgw description

radosgw support is on by default, as built-in Civetweb, set up Apache
is no necessary any more.

Signed-off-by: Jiaying Ren <jiaying.ren@umcloud.com>
8 years agoos/bluestore: add a counter to trace rejected compress ops 11235/head
xie xingguo [Wed, 28 Sep 2016 07:50:23 +0000 (15:50 +0800)]
os/bluestore: add a counter to trace rejected compress ops

This is useful for choosing a more proper bluestore_compression_required_ratio.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: make allocated space calc a little faster
xie xingguo [Wed, 28 Sep 2016 07:24:19 +0000 (15:24 +0800)]
os/bluestore: make allocated space calc a little faster

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: binary search specified shard 11245/head
xie xingguo [Wed, 28 Sep 2016 02:51:21 +0000 (10:51 +0800)]
os/bluestore: binary search specified shard

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: use std namespace for hex/dec output formatting
xie xingguo [Tue, 27 Sep 2016 03:22:10 +0000 (11:22 +0800)]
os/bluestore: use std namespace for hex/dec output formatting

Because we use std::hex/dec everywhere in bluestore except these two places.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: remove fadvise_flags from WriteContext
xie xingguo [Tue, 27 Sep 2016 03:06:29 +0000 (11:06 +0800)]
os/bluestore: remove fadvise_flags from WriteContext

Currently fadvise_flags is only used to check whether
buffered write is necessary, so there is no need
to keep it in the WriteContext as we have already
pre-calculated and kept the buffered field instead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: remove dead local variables from BlueStore::_wctx_finish()
xie xingguo [Tue, 27 Sep 2016 02:57:47 +0000 (10:57 +0800)]
os/bluestore: remove dead local variables from BlueStore::_wctx_finish()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: move nid assignment into BlueStore::_zero()
xie xingguo [Mon, 26 Sep 2016 03:00:41 +0000 (11:00 +0800)]
os/bluestore: move nid assignment into BlueStore::_zero()

So other callers, such as BlueStore::_clone_range(),
won't do it twice.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: remove deferred_csum machinery 11243/head
Sage Weil [Tue, 27 Sep 2016 21:07:16 +0000 (17:07 -0400)]
os/bluestore: remove deferred_csum machinery

When we added this way back in d4f4fa0312d943dd0ce3c27f5fc56c7a753bb471,
we did not have our own buffer cache, and were relying
on the cache at the BlockDevice layer.  In that case,
we would have the problem of a partial wal overwrite
followed by another partial write that needed to read
the rest of the chunk.

However, now we have our own cache, and any data we write
in the _do_write_small() wal path will go into the cache,
which means we will never read the old data off of
disk and need the old csum values.

Remove this now-unnecessary kludge!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_bluestore_types: init g_ceph_context
Sage Weil [Tue, 27 Sep 2016 20:23:21 +0000 (16:23 -0400)]
unittest_bluestore_types: init g_ceph_context

The methods we're testing use it for dout.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add assert to compress_extent_map 11240/head
Sage Weil [Tue, 27 Sep 2016 18:02:36 +0000 (14:02 -0400)]
os/bluestore: add assert to compress_extent_map

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11238 from theanalyst/changelog-v10.2.3
Sage Weil [Tue, 27 Sep 2016 16:02:54 +0000 (11:02 -0500)]
Merge pull request #11238 from theanalyst/changelog-v10.2.3

doc/changelog: add v10.2.3

8 years agoMerge pull request #10814 from liewegas/wip-bluestore-precondition
Sage Weil [Tue, 27 Sep 2016 16:00:38 +0000 (11:00 -0500)]
Merge pull request #10814 from liewegas/wip-bluestore-precondition

os/bluestore: precondition rocksdb/bluefs during mkfs

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agodoc/changelog: add v10.2.3 11238/head
Abhishek Lekshmanan [Tue, 27 Sep 2016 15:59:55 +0000 (17:59 +0200)]
doc/changelog: add v10.2.3

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoos/bluestore: precondition rocksdb on mkfs 10814/head
Sage Weil [Tue, 27 Sep 2016 15:38:42 +0000 (11:38 -0400)]
os/bluestore: precondition rocksdb on mkfs

Write N bytes of garbage to the kv store on startup.  With rocksdb,
this ensures that our log files are preallocated.

This option needs to match up with the rocksdb tunables so that it
is enough data to start recycling log files.  For now, start with
128MB.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11234 from theanalyst/jewel-release-notes
Sage Weil [Tue, 27 Sep 2016 15:18:25 +0000 (10:18 -0500)]
Merge pull request #11234 from theanalyst/jewel-release-notes

doc/release-notes: v10.2.3 jewel

8 years agoMerge pull request #11216 from liewegas/wip-bluestore-compress-map
Sage Weil [Tue, 27 Sep 2016 14:45:38 +0000 (09:45 -0500)]
Merge pull request #11216 from liewegas/wip-bluestore-compress-map

os/bluestore: prevent extent merging across shard boundaries

Reviewed-by: Somnath Roy <somnath.roy@sandisk.com>
8 years agodoc/release-notes: more fixes to 10.2.3 11234/head
Abhishek Lekshmanan [Tue, 27 Sep 2016 14:38:26 +0000 (16:38 +0200)]
doc/release-notes: more fixes to 10.2.3

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #10445 from rjfd/wip-15259
Jason Dillaman [Tue, 27 Sep 2016 14:35:01 +0000 (10:35 -0400)]
Merge pull request #10445 from rjfd/wip-15259

journal: increase concurrency/parallelism of journal recorder

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agodoc/release-notes: v10.2.3 jewel
Abhishek Lekshmanan [Tue, 27 Sep 2016 09:33:09 +0000 (11:33 +0200)]
doc/release-notes: v10.2.3 jewel

Adding release notes for the next jewel release

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agodoc: add v10.2.3 to releases table
Abhishek Lekshmanan [Tue, 27 Sep 2016 09:34:27 +0000 (11:34 +0200)]
doc: add v10.2.3 to releases table

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #11226 from zealoussnow/wip-0926
Sage Weil [Mon, 26 Sep 2016 20:48:40 +0000 (15:48 -0500)]
Merge pull request #11226 from zealoussnow/wip-0926

doc: missing "make vstart" in quick_guide.rst

8 years agoMerge pull request #11228 from stiopaa1/osd_pg_removeUnneededCount1
Sage Weil [Mon, 26 Sep 2016 20:42:05 +0000 (15:42 -0500)]
Merge pull request #11228 from stiopaa1/osd_pg_removeUnneededCount1

osd/PG.cc: remove unneeded use of count

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11229 from liewegas/wip-compressor
Ali Maredia [Mon, 26 Sep 2016 20:36:38 +0000 (16:36 -0400)]
Merge pull request #11229 from liewegas/wip-compressor

cmake: remove more autotools hacks

Reviewed-by: Ali Maredia <amaredia@redhat.com>
8 years agoceph-rest-api: drop autotools detection 11229/head
Sage Weil [Mon, 26 Sep 2016 19:33:31 +0000 (15:33 -0400)]
ceph-rest-api: drop autotools detection

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: drop autotools detection
Sage Weil [Mon, 26 Sep 2016 19:28:15 +0000 (15:28 -0400)]
vstart.sh: drop autotools detection

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agodetect-build-env-vars.sh: drop autotools detection
Sage Weil [Mon, 26 Sep 2016 19:27:39 +0000 (15:27 -0400)]
detect-build-env-vars.sh: drop autotools detection

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph: remove autotools detection
Sage Weil [Mon, 26 Sep 2016 19:26:34 +0000 (15:26 -0400)]
ceph: remove autotools detection

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agodoc: remove old .libs reference
Sage Weil [Mon, 26 Sep 2016 19:14:22 +0000 (15:14 -0400)]
doc: remove old .libs reference

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_compression_*: remove lib dir hackery
Sage Weil [Mon, 26 Sep 2016 19:14:07 +0000 (15:14 -0400)]
unittest_compression_*: remove lib dir hackery

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10143 from majianpeng/bluefs-fix
Sage Weil [Mon, 26 Sep 2016 18:09:44 +0000 (13:09 -0500)]
Merge pull request #10143 from majianpeng/bluefs-fix

os/bluestore/BlueFS: don't inc l_bluefs_files_written_wal if overwrite.

8 years agoMerge pull request #11138 from jcsp/wip-17236
John Spray [Mon, 26 Sep 2016 16:01:07 +0000 (17:01 +0100)]
Merge pull request #11138 from jcsp/wip-17236

mds: handle blacklisting during journal recovery

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agodoc: missing "make vstart" in quick_guide.rst 11226/head
Leo Zhang [Mon, 26 Sep 2016 15:25:29 +0000 (23:25 +0800)]
doc: missing "make vstart" in quick_guide.rst

Signed-off-by: Leo Zhang <nguzcf@gmail.com>
8 years agoMerge pull request #11220 from stiopaa1/mds_mdsdaemon_CMDSTickclass
Sage Weil [Mon, 26 Sep 2016 14:27:54 +0000 (09:27 -0500)]
Merge pull request #11220 from stiopaa1/mds_mdsdaemon_CMDSTickclass

mds/MDSDaemon: move C_MDS_Tick class to .cc file

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11224 from wjwithagen/patch-13
Sage Weil [Mon, 26 Sep 2016 14:27:27 +0000 (09:27 -0500)]
Merge pull request #11224 from wjwithagen/patch-13

osd-fast-mark-down.sh: fix typo in variable assignments

8 years agoMerge pull request #11212 from liewegas/wip-bluestore-spanning-leak
Sage Weil [Mon, 26 Sep 2016 13:45:52 +0000 (08:45 -0500)]
Merge pull request #11212 from liewegas/wip-bluestore-spanning-leak

os/bluestore: drop unreferenced spanning blobs

8 years agoMerge pull request #11223 from somnathr/wip-bluestore-leak-fix
Sage Weil [Mon, 26 Sep 2016 13:44:51 +0000 (08:44 -0500)]
Merge pull request #11223 from somnathr/wip-bluestore-leak-fix

os/bluestore: fix spanning blob leak from ~ExtentMap

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11219 from xiexingguo/xxg-wip-fsck-0924
Sage Weil [Mon, 26 Sep 2016 13:43:24 +0000 (08:43 -0500)]
Merge pull request #11219 from xiexingguo/xxg-wip-fsck-0924

os/bluestore: fix fsck() won't catch stray shard sometimes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorbd-mirror: test: Fixed timeout problem in rbd_mirror_stress.sh 10445/head
Ricardo Dias [Wed, 21 Sep 2016 22:08:18 +0000 (23:08 +0100)]
rbd-mirror: test: Fixed timeout problem in rbd_mirror_stress.sh

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agorbd: Fix race between journal flush and append events
Ricardo Dias [Tue, 6 Sep 2016 16:28:22 +0000 (17:28 +0100)]
rbd: Fix race between journal flush and append events

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agojournal: make librados call async in ObjectRecorder
Ricardo Dias [Wed, 7 Sep 2016 14:26:34 +0000 (15:26 +0100)]
journal: make librados call async in ObjectRecorder

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agoclient: protect InodeRef with client_lock 11225/head
Yan, Zheng [Mon, 26 Sep 2016 13:20:26 +0000 (21:20 +0800)]
client: protect InodeRef with client_lock

Fixes: http://tracker.ceph.com/issues/17392
Signed-off-by: Yan, Zheng <zyan@redhat.com>
8 years agoosd-fast-mark-down.sh: fix typo in variable assignments 11224/head
Willem Jan Withagen [Mon, 26 Sep 2016 12:44:32 +0000 (14:44 +0200)]
osd-fast-mark-down.sh: fix typo in variable assignments

Assignments to variables do not want a '$' in front of them.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agojournal: increase concurrency of journal recorder
Ricardo Dias [Mon, 25 Jul 2016 16:00:50 +0000 (17:00 +0100)]
journal: increase concurrency of journal recorder

Signed-off-by: Ricardo Dias <rdias@suse.com>
8 years agoBlueStore: Fixed a memory leak 11223/head
Somnath Roy [Mon, 26 Sep 2016 00:52:00 +0000 (17:52 -0700)]
BlueStore: Fixed a memory leak

If a Blob is spanning is not getting deleted as spanning_blob_map
is holding one ref.Explicitly decreasing Blob ref from ExtentMap
destructor and erasing from spanning_blob_map is fixing the leak.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
8 years agoMerge pull request #11196 from tchaikov/wip-lttng-the-right-way
Jason Dillaman [Sun, 25 Sep 2016 20:27:58 +0000 (16:27 -0400)]
Merge pull request #11196 from tchaikov/wip-lttng-the-right-way

lttng: build the tracepoint provider lib from .c files in repo

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoosd/PG.cc: remove unneeded use of count 11228/head
Michal Jarzabek [Sun, 25 Sep 2016 14:37:33 +0000 (15:37 +0100)]
osd/PG.cc: remove unneeded use of count

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agorbd-mirror: wait for in-flight event commit notifications 11185/head
Jason Dillaman [Wed, 21 Sep 2016 19:41:55 +0000 (15:41 -0400)]
rbd-mirror: wait for in-flight event commit notifications

Fixes: http://tracker.ceph.com/issues/17355
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agocommon: move AsyncOpTracker to common library
Jason Dillaman [Wed, 21 Sep 2016 17:02:34 +0000 (13:02 -0400)]
common: move AsyncOpTracker to common library

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agomds/MDSDaemon: move C_MDS_Tick class to .cc file 11220/head
Michal Jarzabek [Sat, 24 Sep 2016 19:37:49 +0000 (20:37 +0100)]
mds/MDSDaemon: move C_MDS_Tick class to .cc file

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #11090 from dillaman/wip-16974
Mykola Golub [Sat, 24 Sep 2016 17:13:25 +0000 (20:13 +0300)]
Merge pull request #11090 from dillaman/wip-16974

rbd-mirror: force-promoted image will remain R/O until rbd-mirror daemon restarted

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoos/bluestore: fix dout of BlueStore::fiemap() 11219/head
xie xingguo [Sat, 24 Sep 2016 06:52:39 +0000 (14:52 +0800)]
os/bluestore: fix dout of BlueStore::fiemap()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: add a counter to trace checksum latency
xie xingguo [Sat, 24 Sep 2016 06:42:04 +0000 (14:42 +0800)]
os/bluestore: add a counter to trace checksum latency

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: remove a never reachable assert
xie xingguo [Sat, 24 Sep 2016 02:58:23 +0000 (10:58 +0800)]
os/bluestore: remove a never reachable assert

As this assert is deprecated by the
  "else if (it->key() >= tail)"
checking lying ahead.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: promote output to derr on catching bad/stray objects
xie xingguo [Sat, 24 Sep 2016 02:55:34 +0000 (10:55 +0800)]
os/bluestore: promote output to derr on catching bad/stray objects

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix fsck() won't catch stray shard sometimes
xie xingguo [Sat, 24 Sep 2016 01:50:01 +0000 (09:50 +0800)]
os/bluestore: fix fsck() won't catch stray shard sometimes

which is introduced by https://github.com/ceph/ceph/pull/11210/commits/dcfbc72fcbb48f4ced0c1a2d46a77f43bff38c9f

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>