]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agotest/store_test: fix statfs results check to consider SSD min_alloc_size 11096/head
Igor Fedotov [Thu, 15 Sep 2016 15:33:23 +0000 (15:33 +0000)]
test/store_test: fix statfs results check to consider SSD min_alloc_size

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11092 from badone/wip-dry-run-run-make-check
Sage Weil [Thu, 15 Sep 2016 14:07:59 +0000 (09:07 -0500)]
Merge pull request #11092 from badone/wip-dry-run-run-make-check

run-make-check.sh: Make DRY_RUN actually do a dry run

8 years agoMerge pull request #11091 from badone/wip-submodule-init-run-cmake-check
Sage Weil [Thu, 15 Sep 2016 14:07:35 +0000 (09:07 -0500)]
Merge pull request #11091 from badone/wip-submodule-init-run-cmake-check

run-cmake-check.sh: Init submodules

8 years agoMerge pull request #11087 from liewegas/wip-bluefs-allocator
Sage Weil [Thu, 15 Sep 2016 13:32:20 +0000 (08:32 -0500)]
Merge pull request #11087 from liewegas/wip-bluefs-allocator

os/bluestore/BlueFS: use StupidAllocator; fix async compaction bug

Reviewed-by: Varada Kari <varada.kari@sandisk.com>
8 years agoMerge pull request #11088 from tchaikov/do-freebsd-without-autotools
Kefu Chai [Thu, 15 Sep 2016 11:25:07 +0000 (19:25 +0800)]
Merge pull request #11088 from tchaikov/do-freebsd-without-autotools

do_freebsd*.sh: rename do_freebsd-cmake.sh to do_freebsd.sh

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agorun-make-check.sh: Make DRY_RUN actually do a dry run 11092/head
Brad Hubbard [Thu, 15 Sep 2016 10:04:39 +0000 (20:04 +1000)]
run-make-check.sh: Make DRY_RUN actually do a dry run

The "cd build" command will cause an error during a dry run if the directory
does not exist.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agorun-cmake-check.sh: Init submodules 11091/head
Brad Hubbard [Thu, 15 Sep 2016 09:39:25 +0000 (19:39 +1000)]
run-cmake-check.sh: Init submodules

If submodules are not initialised run-cmake-check.sh can fail.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agodo_freebsd*.sh: rename do_freebsd-cmake.sh to do_freebsd.sh 11088/head
Kefu Chai [Thu, 15 Sep 2016 06:16:57 +0000 (14:16 +0800)]
do_freebsd*.sh: rename do_freebsd-cmake.sh to do_freebsd.sh

as autotools is dropped. and remove trailing spaces.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11072 from dmick/wip-17268
Alfredo Deza [Thu, 15 Sep 2016 04:43:08 +0000 (10:13 +0530)]
Merge pull request #11072 from dmick/wip-17268

ceph-disk tests: Let missing python interpreters be non-fatal

Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agoMerge pull request #11076 from badone/wip-gitignore-pyc
Josh Durgin [Thu, 15 Sep 2016 04:29:18 +0000 (09:59 +0530)]
Merge pull request #11076 from badone/wip-gitignore-pyc

.gitignore: Add .pyc files globally

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #11042 from somnathr/wip-verbose-log
Sage Weil [Thu, 15 Sep 2016 00:42:48 +0000 (19:42 -0500)]
Merge pull request #11042 from somnathr/wip-verbose-log

kv/rocksdb: dump transactions on error

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/BlueFS: add safety checks on ino 0|1 op_file_update 11087/head
Sage Weil [Wed, 14 Sep 2016 23:02:04 +0000 (19:02 -0400)]
os/bluestore/BlueFS: add safety checks on ino 0|1 op_file_update

We only want to log updates on ino 1 in very specific
cases, and never on ino 0.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/BlueFS: do not dirty compacting log ino 0
Sage Weil [Wed, 14 Sep 2016 23:00:51 +0000 (19:00 -0400)]
os/bluestore/BlueFS: do not dirty compacting log ino 0

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/StupidAllocator: use hex for debug
Sage Weil [Wed, 14 Sep 2016 22:50:58 +0000 (18:50 -0400)]
os/bluestore/StupidAllocator: use hex for debug

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/BlueFS: config option for allocator (default stupid)
Sage Weil [Wed, 14 Sep 2016 22:38:05 +0000 (18:38 -0400)]
os/bluestore/BlueFS: config option for allocator (default stupid)

StupidAllocator is probably a more appropriate choice for bluefs.
Either way, it needn't be tied to what BlueStore is using.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoLogging proper message during read error from disk 11042/head
Somnath Roy [Sat, 10 Sep 2016 20:28:32 +0000 (16:28 -0400)]
Logging proper message during read error from disk

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
8 years agoLogging rocksdb transaction in ceph log
Somnath Roy [Thu, 8 Sep 2016 18:25:45 +0000 (14:25 -0400)]
Logging rocksdb transaction in ceph log

The rocksdb transaction is now been logged into ceph log based
on debug level. If transaction is failed, the error code,
error string and the entire transaction is dumped in the log.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
8 years agoMerge pull request #11085 from stiopaa1/osd_osd_moveUnderPrivate
Sage Weil [Wed, 14 Sep 2016 19:48:57 +0000 (14:48 -0500)]
Merge pull request #11085 from stiopaa1/osd_osd_moveUnderPrivate

osd/OSD.h: make some members private

8 years agoosd/OSD.h: make some members private 11085/head
Michal Jarzabek [Wed, 14 Sep 2016 17:39:22 +0000 (18:39 +0100)]
osd/OSD.h: make some members private

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #11067 from stiopaa1/common_timer_replaceLongTypeswithauto
Sage Weil [Wed, 14 Sep 2016 17:38:08 +0000 (12:38 -0500)]
Merge pull request #11067 from stiopaa1/common_timer_replaceLongTypeswithauto

common/Timer.cc: replace long types with auto

8 years agoMerge pull request #11068 from liewegas/wip-bluestore-leaks
Sage Weil [Wed, 14 Sep 2016 15:35:18 +0000 (10:35 -0500)]
Merge pull request #11068 from liewegas/wip-bluestore-leaks

os/bluestore: fix a few leaks

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: clear SharedBlob cache in dtor 11068/head
Sage Weil [Wed, 14 Sep 2016 13:55:08 +0000 (09:55 -0400)]
os/bluestore: clear SharedBlob cache in dtor

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: make Cache::lock a recursive_mutex
Sage Weil [Wed, 14 Sep 2016 14:07:36 +0000 (10:07 -0400)]
os/bluestore: make Cache::lock a recursive_mutex

We need to remove items from the cache LRUs in their
destructors, and it is very awkward to ensure that all
releasing paths either hold the cache lock or have
already cleared the cache items out.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix SharedBlob leaks
Sage Weil [Tue, 13 Sep 2016 18:43:29 +0000 (14:43 -0400)]
os/bluestore: fix SharedBlob leaks

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix Extent leak from ~ExtentMap
Sage Weil [Tue, 13 Sep 2016 18:28:24 +0000 (14:28 -0400)]
os/bluestore: fix Extent leak from ~ExtentMap

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11080 from ifed01/wip-compression-store-improvement
Sage Weil [Wed, 14 Sep 2016 14:57:12 +0000 (09:57 -0500)]
Merge pull request #11080 from ifed01/wip-compression-store-improvement

test/store_test: extend Bluestore compression test to verify compress…

8 years agoMerge pull request #11074 from badone/wip-dry-run
Kefu Chai [Wed, 14 Sep 2016 14:42:25 +0000 (22:42 +0800)]
Merge pull request #11074 from badone/wip-dry-run

run-*make-check.sh: Make DRY_RUN actually mean a dry run

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest/store_test: extend Bluestore compression test to verify compression statistics... 11080/head
Igor Fedotov [Wed, 14 Sep 2016 14:00:54 +0000 (14:00 +0000)]
test/store_test: extend Bluestore compression test to verify compression statistics and hence compression workability

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #10965 from ceph/wip-crypto-init
Orit Wasserman [Wed, 14 Sep 2016 14:12:35 +0000 (16:12 +0200)]
Merge pull request #10965 from ceph/wip-crypto-init

common: only call crypto::init once per CephContext
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoos/bluestore: add ExtentMap::add() helper
Sage Weil [Tue, 13 Sep 2016 17:42:23 +0000 (13:42 -0400)]
os/bluestore: add ExtentMap::add() helper

Matches rm().

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix Extent leak from _wctx_finish
Sage Weil [Tue, 13 Sep 2016 17:41:43 +0000 (13:41 -0400)]
os/bluestore: fix Extent leak from _wctx_finish

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix Extent leak on ExtentMap removal
Sage Weil [Tue, 13 Sep 2016 17:39:35 +0000 (13:39 -0400)]
os/bluestore: fix Extent leak on ExtentMap removal

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10998 from ceph/wip-16695
Casey Bodley [Wed, 14 Sep 2016 13:53:57 +0000 (09:53 -0400)]
Merge pull request #10998 from ceph/wip-16695

rgw: work around curl_multi_wait bug with non-blocking reads

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11069 from liewegas/wip-rocksdb
Sage Weil [Wed, 14 Sep 2016 13:42:09 +0000 (08:42 -0500)]
Merge pull request #11069 from liewegas/wip-rocksdb

rocksdb: pull up to master (4.12 + a few patches)

8 years agoMerge pull request #11079 from ifed01/wip-fix-zlib
Sage Weil [Wed, 14 Sep 2016 13:41:40 +0000 (08:41 -0500)]
Merge pull request #11079 from ifed01/wip-fix-zlib

compressor/zlib: zlib wrapper fix

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

os/bluestore: add checks and kill unreachable code

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11014 from chhabaramesh/extent_alloc
Sage Weil [Wed, 14 Sep 2016 13:39:21 +0000 (08:39 -0500)]
Merge pull request #11014 from chhabaramesh/extent_alloc

os/bluestore: make assert conditional with macro for allocator

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocompressor/zlis: improve buffer allocation to avoid space waste 11079/head
Igor Fedotov [Wed, 14 Sep 2016 12:48:36 +0000 (12:48 +0000)]
compressor/zlis: improve buffer allocation to avoid space waste

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agocommon/compressor: fix improper length value passed to zlib compressor
Igor Fedotov [Wed, 14 Sep 2016 12:21:02 +0000 (12:21 +0000)]
common/compressor: fix improper length value passed to zlib compressor

Signed-off-by: Igor Fedotov <ifedotovo@miranitis.com>
8 years agotest/objectstore: extend compression test case to use both snappy & zlib
Igor Fedotov [Wed, 14 Sep 2016 12:19:49 +0000 (12:19 +0000)]
test/objectstore: extend compression test case to use both snappy & zlib

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years ago.gitignore: Add .pyc files globally 11076/head
Brad Hubbard [Wed, 14 Sep 2016 09:35:57 +0000 (19:35 +1000)]
.gitignore: Add .pyc files globally

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #11071 from dmick/wip-17267
Alfredo Deza [Wed, 14 Sep 2016 08:32:42 +0000 (14:02 +0530)]
Merge pull request #11071 from dmick/wip-17267

Stop hiding errors from run-tox.sh

Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agoos/bluestore: drop result check of OP_TRY_RENAME 11077/head
xie xingguo [Wed, 14 Sep 2016 07:19:01 +0000 (15:19 +0800)]
os/bluestore: drop result check of OP_TRY_RENAME

Because _rename() never returns -ENOENT, it only
returns -EEXIST on failure.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agorun-*make-check.sh: Make DRY_RUN actually mean a dry run 11074/head
Brad Hubbard [Wed, 14 Sep 2016 07:13:47 +0000 (17:13 +1000)]
run-*make-check.sh: Make DRY_RUN actually mean a dry run

DRY_RUN does not currently do an actual dry run as it actually runs an install
command.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoos/bluestore: add sanity check for compress()
xie xingguo [Wed, 14 Sep 2016 06:56:24 +0000 (14:56 +0800)]
os/bluestore: add sanity check for compress()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoStop hiding errors from run-tox.sh 11071/head
Dan Mick [Wed, 14 Sep 2016 03:29:52 +0000 (20:29 -0700)]
Stop hiding errors from run-tox.sh

The grep -v should have been grep, but, why even bother?
Tox doesn't output that much; just dump it, and exit with
tox's error code.

Fixes: http://tracker.ceph.com/issues/17267
Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoceph-disk tests: Let missing python interpreters be non-fatal 11072/head
Dan Mick [Wed, 14 Sep 2016 03:34:24 +0000 (20:34 -0700)]
ceph-disk tests: Let missing python interpreters be non-fatal

Let tox ignore missing interpreters, and add py35 and py36 as well.
This lets tests work on Xenial, for example, which only has py35.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoMerge pull request #10826 from xiexingguo/xxg-wip-fix-objecter-0823
Yuri Weinstein [Tue, 13 Sep 2016 22:54:57 +0000 (15:54 -0700)]
Merge pull request #10826 from xiexingguo/xxg-wip-fix-objecter-0823

osdc/objecter: misc fixes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10859 from xiexingguo/xxg-wip-fix-osd-08-25
Yuri Weinstein [Tue, 13 Sep 2016 22:52:20 +0000 (15:52 -0700)]
Merge pull request #10859 from xiexingguo/xxg-wip-fix-osd-08-25

osd/osd_type: check if pool is gone during check_new_interval()

Reviewed-by: Samuel Just <sjust@redhat.com>
8 years agoMerge pull request #11059 from markhpc/wip-bluefs-wal-buffered
Sage Weil [Tue, 13 Sep 2016 22:01:55 +0000 (17:01 -0500)]
Merge pull request #11059 from markhpc/wip-bluefs-wal-buffered

bluestore/BlueFS: revert direct IO for WRITER_WAL

8 years agoMerge pull request #11030 from amoxic/amoxic-wip-fix-do-write-small
Sage Weil [Tue, 13 Sep 2016 18:13:20 +0000 (13:13 -0500)]
Merge pull request #11030 from amoxic/amoxic-wip-fix-do-write-small

os/bluestore: fix offset bug in _do_write_small.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorocksdb: pull up to master (4.12 + a few patches) 11069/head
Sage Weil [Tue, 13 Sep 2016 18:11:56 +0000 (14:11 -0400)]
rocksdb: pull up to master (4.12 + a few patches)

This includes Somnath's fix for log recycling.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/Timer.cc: replace long types with auto 11067/head
Michal Jarzabek [Tue, 13 Sep 2016 17:35:54 +0000 (18:35 +0100)]
common/Timer.cc: replace long types with auto

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agoMerge pull request #11046 from stiopaa1/common_timer_deleteCopyConstrAndAssign
Kefu Chai [Tue, 13 Sep 2016 15:04:50 +0000 (23:04 +0800)]
Merge pull request #11046 from stiopaa1/common_timer_deleteCopyConstrAndAssign

common/Timer.h: delete copy constr and assign op

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11057 from liewegas/wip-os-fuse
Kefu Chai [Tue, 13 Sep 2016 15:01:34 +0000 (23:01 +0800)]
Merge pull request #11057 from liewegas/wip-os-fuse

qa/workunits/objectstore/test_fuse.sh: make test_fuse.sh work with filestore

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11064 from ilc/make-srpm
Sage Weil [Tue, 13 Sep 2016 13:57:48 +0000 (08:57 -0500)]
Merge pull request #11064 from ilc/make-srpm

make-srpm.sh: A simple script to make the srpm for ceph.

8 years agoMerge pull request #11061 from xiexingguo/xxg-wip-bs-0913
Sage Weil [Tue, 13 Sep 2016 13:56:20 +0000 (08:56 -0500)]
Merge pull request #11061 from xiexingguo/xxg-wip-bs-0913

os/bluestore: fix shard_info::dump()

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agomake-srpm.sh: A simple script to make the srpm for ceph. 11064/head
Ira Cooper [Tue, 13 Sep 2016 13:29:07 +0000 (09:29 -0400)]
make-srpm.sh: A simple script to make the srpm for ceph.

This is a simple script to make the srpm for ceph based
on make-dist.

Yes, it is short, but it will stop many people from
having to solve the same problem.

Signed-off-by: Ira Cooper <ira@redhat.com>
8 years agoqa/workunits/objecstore/test_fuse.sh: make it work with filestore 11057/head
Sage Weil [Tue, 13 Sep 2016 13:40:03 +0000 (09:40 -0400)]
qa/workunits/objecstore/test_fuse.sh: make it work with filestore

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoDelete unnecessary parentheses. 11030/head
amoxic [Tue, 13 Sep 2016 10:02:19 +0000 (10:02 +0000)]
Delete unnecessary parentheses.

Signed-off-by: feng yu amoxic@126.com
8 years agoMerge pull request #11016 from wido/snap-max-uid
John Spray [Tue, 13 Sep 2016 08:46:29 +0000 (09:46 +0100)]
Merge pull request #11016 from wido/snap-max-uid

mds: Set mds_snap_max_uid to 4294967294

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agomin_min_alloc_size to accommodate changing min_alloc_size 11014/head
Ramesh Chander [Fri, 9 Sep 2016 12:43:46 +0000 (05:43 -0700)]
min_min_alloc_size to accommodate changing min_alloc_size

Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
8 years agoos/bluestore: fix dump of shard_info 11061/head
xie xingguo [Tue, 13 Sep 2016 06:06:22 +0000 (14:06 +0800)]
os/bluestore: fix dump of shard_info

which shall include the "extents" field too.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #10873 from dreamhost/wip-17136
Casey Bodley [Mon, 12 Sep 2016 17:38:39 +0000 (13:38 -0400)]
Merge pull request #10873 from dreamhost/wip-17136

rgw: Fix Host->bucket fallback logic inversion

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: detect and work around a curl_multi_wait bug 10998/head
Casey Bodley [Fri, 9 Sep 2016 20:46:54 +0000 (16:46 -0400)]
rgw: detect and work around a curl_multi_wait bug

Fixes: http://tracker.ceph.com/issues/15915
Fixes: http://tracker.ceph.com/issues/16695
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: use non-blocking reads for clear_signal
Casey Bodley [Fri, 9 Sep 2016 20:01:16 +0000 (16:01 -0400)]
rgw: use non-blocking reads for clear_signal

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: factored clear_signal out of do_curl_wait
Casey Bodley [Fri, 9 Sep 2016 19:58:50 +0000 (15:58 -0400)]
rgw: factored clear_signal out of do_curl_wait

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #10918 from tianshan/fix-bucket-decode-v
Yehuda Sadeh [Mon, 12 Sep 2016 15:18:06 +0000 (08:18 -0700)]
Merge pull request #10918 from tianshan/fix-bucket-decode-v

rgw: fix rgw_bucket_dir_entry decode v

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agobluestore/BlueFS: revert direct IO for WRITER_WAL 11059/head
Mark Nelson [Mon, 12 Sep 2016 14:53:50 +0000 (09:53 -0500)]
bluestore/BlueFS: revert direct IO for WRITER_WAL

Signed-off-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #11040 from xiexingguo/xxg-wip-bluestore-0910
Sage Weil [Mon, 12 Sep 2016 14:20:40 +0000 (09:20 -0500)]
Merge pull request #11040 from xiexingguo/xxg-wip-bluestore-0910

os/bluestore: fix leak of result-checking of _fsck_check_extents

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11047 from tchaikov/wip-long-live-readdir
Kefu Chai [Mon, 12 Sep 2016 13:55:20 +0000 (21:55 +0800)]
Merge pull request #11047 from tchaikov/wip-long-live-readdir

ceph_mon: use readdir() as readdir_r() is deprecated

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
8 years agoMerge pull request #11033 from xiexingguo/xxg-wip-bluestore-0909
Sage Weil [Mon, 12 Sep 2016 13:37:32 +0000 (08:37 -0500)]
Merge pull request #11033 from xiexingguo/xxg-wip-bluestore-0909

os/bluestore: fix potential access violation during rename

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11044 from dillaman/wip-17227
Mykola Golub [Mon, 12 Sep 2016 09:10:21 +0000 (12:10 +0300)]
Merge pull request #11044 from dillaman/wip-17227

librbd: ignore partial refresh error when acquiring exclusive lock

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11037 from dillaman/wip-17254
Mykola Golub [Mon, 12 Sep 2016 09:08:46 +0000 (12:08 +0300)]
Merge pull request #11037 from dillaman/wip-17254

librbd: possible deadlock if cluster connection closed after image

Reviewed-by: Xiaoxi Chen <xiaoxchen@ebay.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoceph_mon: use readdir() as readdir_r() is deprecated 11047/head
Kefu Chai [Mon, 12 Sep 2016 03:56:09 +0000 (11:56 +0800)]
ceph_mon: use readdir() as readdir_r() is deprecated

see https://lwn.net/Articles/696469/, readdir_r() is deprecated by glibc
since 2.24. so let's use readdir() instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10941 from ceph/8.31.16-fix-install-deps
Kefu Chai [Mon, 12 Sep 2016 03:11:51 +0000 (11:11 +0800)]
Merge pull request #10941 from ceph/8.31.16-fix-install-deps

install-deps: exit non-zero when we cannot match distro

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11043 from stiopaa1/osd_osd_removeUnneededReturns
Kefu Chai [Mon, 12 Sep 2016 02:50:12 +0000 (10:50 +0800)]
Merge pull request #11043 from stiopaa1/osd_osd_removeUnneededReturns

osd/OSD.cc: remove unneeded returns

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoosd/OSD.cc: remove unneeded returns 11043/head
Michal Jarzabek [Sun, 11 Sep 2016 10:17:27 +0000 (11:17 +0100)]
osd/OSD.cc: remove unneeded returns

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agocommon/Timer.h: delete copy constr and assign op 11046/head
Michal Jarzabek [Sun, 11 Sep 2016 19:19:57 +0000 (20:19 +0100)]
common/Timer.h: delete copy constr and assign op

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agolibrbd: ignore partial refresh error when acquiring exclusive lock 11044/head
Jason Dillaman [Sun, 11 Sep 2016 13:08:41 +0000 (09:08 -0400)]
librbd: ignore partial refresh error when acquiring exclusive lock

Fixes: http://tracker.ceph.com/issues/17227
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11041 from stiopaa1/osd_replicatedpg_removeClassRedeclaration
Kefu Chai [Sun, 11 Sep 2016 10:09:09 +0000 (18:09 +0800)]
Merge pull request #11041 from stiopaa1/osd_replicatedpg_removeClassRedeclaration

osd/ReplicatedPG: remove class redeclaration

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10952 from codeyz/dev
Kefu Chai [Sun, 11 Sep 2016 03:52:44 +0000 (11:52 +0800)]
Merge pull request #10952 from codeyz/dev

crush/CrushCompiler.cc:884

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10986 from stiopaa1/osd_osd_remove_repeated_searching_of_map
Kefu Chai [Sun, 11 Sep 2016 03:49:17 +0000 (11:49 +0800)]
Merge pull request #10986 from stiopaa1/osd_osd_remove_repeated_searching_of_map

osd/OSD.cc: remove repeated searching of map

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11000 from stiopaa1/osd_osd_removeUnneededSearchMap
Kefu Chai [Sun, 11 Sep 2016 03:39:49 +0000 (11:39 +0800)]
Merge pull request #11000 from stiopaa1/osd_osd_removeUnneededSearchMap

osd/OSD.cc: remove unneeded searching of map

Reviewed-by: Jun Huang <hjwsm1989@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10935 from branch-predictor/bp-optimized-crush-ln
Kefu Chai [Sun, 11 Sep 2016 03:37:16 +0000 (11:37 +0800)]
Merge pull request #10935 from branch-predictor/bp-optimized-crush-ln

crush: don't normalize input of crush_ln iteratively

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #10776 from ceph/wip-offline-split
Kefu Chai [Sun, 11 Sep 2016 03:26:36 +0000 (11:26 +0800)]
Merge pull request #10776 from ceph/wip-offline-split

ceph-objectstore-tool: add a way to split filestore directories offline

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10011 from songbaisen/a16
Kefu Chai [Sun, 11 Sep 2016 03:23:36 +0000 (11:23 +0800)]
Merge pull request #10011 from songbaisen/a16

 mon: remove the redundant list swap in paxos commit_proposal

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #10872 from rjfd/wip-16776
Kefu Chai [Sun, 11 Sep 2016 03:22:08 +0000 (11:22 +0800)]
Merge pull request #10872 from rjfd/wip-16776

Enable builds without ceph-test subpackage

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoosd/ReplicatedPG: remove class redeclaration 11041/head
Michal Jarzabek [Sat, 10 Sep 2016 18:17:57 +0000 (19:17 +0100)]
osd/ReplicatedPG: remove class redeclaration

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
8 years agolibrbd: possible deadlock if cluster connection closed after image 11037/head
Jason Dillaman [Fri, 9 Sep 2016 14:42:50 +0000 (10:42 -0400)]
librbd: possible deadlock if cluster connection closed after image

Fixes: http://tracker.ceph.com/issues/17254
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agoos/bluestore: drop bluestore_blob_id_t 11040/head
xie xingguo [Sat, 10 Sep 2016 10:33:42 +0000 (18:33 +0800)]
os/bluestore: drop bluestore_blob_id_t

which is not used anymore.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: kill fill() method from bluestore_extent_ref_map_t
xie xingguo [Sat, 10 Sep 2016 10:08:52 +0000 (18:08 +0800)]
os/bluestore: kill fill() method from bluestore_extent_ref_map_t

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: add sanity check during extent loading
xie xingguo [Sat, 10 Sep 2016 09:58:54 +0000 (17:58 +0800)]
os/bluestore: add sanity check during extent loading

Otherwise there are potential extent leaks.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11034 from dillaman/wip-17251
Mykola Golub [Sat, 10 Sep 2016 08:23:45 +0000 (11:23 +0300)]
Merge pull request #11034 from dillaman/wip-17251

librbd: potential seg fault when blacklisting an image client

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoos/bluestore: fix leak of result-checking of _fsck_check_extents
xie xingguo [Sat, 10 Sep 2016 07:35:26 +0000 (15:35 +0800)]
os/bluestore: fix leak of result-checking of _fsck_check_extents

We shall not ignore the result of _fsck_check_extents() durint fsck().

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: using is_spanning() for spanning checking 11033/head
xie xingguo [Sat, 10 Sep 2016 02:12:52 +0000 (10:12 +0800)]
os/bluestore: using is_spanning() for spanning checking

Otherwise is_spanning() has no caller and shall be deleted.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix race condition
xie xingguo [Sat, 10 Sep 2016 02:05:32 +0000 (10:05 +0800)]
os/bluestore: fix race condition

The empty() method also needs to be called under the protection of lock.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: simplify extent_shard_key a little
xie xingguo [Sat, 10 Sep 2016 01:25:05 +0000 (09:25 +0800)]
os/bluestore: simplify extent_shard_key a little

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: return onode_key to caller
xie xingguo [Fri, 9 Sep 2016 10:58:25 +0000 (18:58 +0800)]
os/bluestore: return onode_key to caller

The get_key_extent_shard() method shall decompose extent_shard_key
into onode_key and offset, but currently we don't fill onode_key
and return it to caller.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: make extent key generation a little faster
xie xingguo [Fri, 9 Sep 2016 10:56:24 +0000 (18:56 +0800)]
os/bluestore: make extent key generation a little faster

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