]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
David Zafman [Tue, 29 Nov 2016 16:04:19 +0000 (08:04 -0800)]
test: Turn off test-erasure-eio.sh due to Jenkins failures
Signed-off-by: David Zafman <dzafman@redhat.com>
David Zafman [Tue, 29 Nov 2016 16:02:50 +0000 (08:02 -0800)]
test: Turn off osd-scrub-repair.sh due to Jenkins failures
Signed-off-by: David Zafman <dzafman@redhat.com>
Yehuda Sadeh [Mon, 28 Nov 2016 23:06:12 +0000 (15:06 -0800)]
Merge pull request #10672 from ceph/wip-rgw-http-getcmd
RGWHTTPArgs::get_str() - return argument string that was set.
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 28 Nov 2016 23:04:15 +0000 (15:04 -0800)]
Merge pull request #10546 from cbodley/wip-rgw-log-trim-lease
rgw multisite: use a rados lock to coordinate data log trimming
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Sage Weil [Mon, 28 Nov 2016 22:06:19 +0000 (17:06 -0500)]
Merge pull request #12114 from liewegas/wip-bluestore-failops
os/bluestore: mark ops that can't tolerate ENOENT
Reviewed-by: Samuel Just <sjust@redhat.com>
Gregory Farnum [Mon, 28 Nov 2016 21:28:21 +0000 (16:28 -0500)]
Merge pull request #12022 from jcsp/wip-17853
mds: more deterministic timing on frag split/join
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Sage Weil [Mon, 28 Nov 2016 21:21:52 +0000 (16:21 -0500)]
Merge pull request #12094 from
363921219 /cleanup_C_CompleteSplits
osd: cleanup C_CompleteSplits::finish()
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Mon, 28 Nov 2016 21:21:08 +0000 (16:21 -0500)]
Merge pull request #12148 from tchaikov/wip-scan-build-fixes
scan build fixes
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 28 Nov 2016 21:18:56 +0000 (16:18 -0500)]
Merge pull request #12099 from wjin/fix_filestore_perfcounter
os/filestore: fix journal logger
Reviewed-by: Samuel Just <sjust@redhat.com>
Kefu Chai [Mon, 28 Nov 2016 17:08:14 +0000 (01:08 +0800)]
Merge pull request #12201 from tchaikov/wip-memstore-leak
os/memstore: fix a mem leak in MemStore::Collection::create_object()
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 28 Nov 2016 14:47:19 +0000 (22:47 +0800)]
os/memstore: fix a mem leak in MemStore::Collection::create_object()
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 28 Nov 2016 07:27:52 +0000 (15:27 +0800)]
Merge pull request #12168 from liewegas/doc-perf
doc/dev/perf: a few notes on perf
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 28 Nov 2016 03:40:18 +0000 (11:40 +0800)]
Merge pull request #12176 from ovh/wip-doc-osd-scrub-during-recovery-chunk-min-max-sleep
doc: Add doc about osd scrub {during recovery|chunk {min|max}| sleep}
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 28 Nov 2016 03:07:54 +0000 (11:07 +0800)]
Merge pull request #10297 from Yan-waller/yj-wip-msgsimple-0714
msg/simple: save the errno in case being changed by subsequent codes
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Mon, 28 Nov 2016 03:07:07 +0000 (11:07 +0800)]
Merge pull request #11154 from stiopaa1/osd_pg_useMoveOnSharedPtr
osd/PG.h: move shared ptr instead of copying it
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 28 Nov 2016 03:01:03 +0000 (11:01 +0800)]
Merge pull request #12186 from chrone81/patch-1
doc: Remove duplicate command for Ubuntu
Reviewed-by: Kefu Chai <kchai@redhat.com>
John Spray [Mon, 28 Nov 2016 00:00:20 +0000 (00:00 +0000)]
Merge pull request #12106 from ceph/wip-jlayton-libcephfs
API cleanup for libcephfs interfaces
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
chrone [Fri, 25 Nov 2016 11:45:33 +0000 (18:45 +0700)]
doc: Remove duplicate command for Ubuntu
Remove duplicate "sudo service radosgw restart id=rgw.<short-hostname>" command for Ubuntu in Configure Bucket Sharding.
Signed-off-by: chrone <charlesalva@gmail.com>
Orit Wasserman [Fri, 25 Nov 2016 16:30:44 +0000 (17:30 +0100)]
Merge pull request #11982 from zhouruisong/master
rgw:bugfix for deleting objects name beginning and ending with underscores of one bucket using POST method of AWS's js sdk.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Kefu Chai [Fri, 25 Nov 2016 15:16:36 +0000 (23:16 +0800)]
Merge pull request #9859 from x11562/OSDMap
mon: osdmap's epoch should be more than 0
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Kefu Chai [Fri, 25 Nov 2016 15:12:45 +0000 (23:12 +0800)]
Merge pull request #9172 from majianpeng/librados-add-fullforce
librados: For C-API, expose LIBRADOS_OPERATION_FULL_FORCE flag
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
Kefu Chai [Fri, 25 Nov 2016 15:10:05 +0000 (23:10 +0800)]
Merge pull request #10553 from songbaisen/c3
osd: remove the redundant clear method in consume_map function
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Fri, 25 Nov 2016 15:07:44 +0000 (23:07 +0800)]
Merge pull request #12117 from
363921219 /cleanup_PeeringWQ_dequeue
osd: clean up PeeringWQ::_dequeue(), remove unnecessary variable
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 25 Nov 2016 15:05:29 +0000 (23:05 +0800)]
Merge pull request #11841 from hjwsm1989/filestore
os/filestore: avoid to get the wrong hardlink number.
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Fri, 25 Nov 2016 15:03:41 +0000 (23:03 +0800)]
Merge pull request #11913 from wjwithagen/wip-wjw-freebsd-aio-inline
os/fs/FS.cc: condition on WITH_AIO for FreeBSD
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 25 Nov 2016 15:01:07 +0000 (23:01 +0800)]
Merge pull request #9062 from majianpeng/aio-pwritev
os/fs/FS: optimize aio::pwritev which make caller provide length.
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Fri, 25 Nov 2016 03:20:21 +0000 (11:20 +0800)]
Merge pull request #12183 from dachary/wip-17830-eio
tests: facilitate background process debug in ceph-helpers.sh
Reviewed-by: Kefu Chai <kchai@redhat.com>
John Spray [Thu, 24 Nov 2016 20:35:00 +0000 (20:35 +0000)]
Merge pull request #12184 from SUSE/wip-18040
doc: we can now run multiple MDS, so qualify warning
Reviewed-by: John Spray <john.spray@redhat.com>
Nathan Cutler [Thu, 24 Nov 2016 19:29:31 +0000 (20:29 +0100)]
doc: we can now run multiple MDS, so qualify warning
Fixes: http://tracker.ceph.com/issues/18040
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Loic Dachary [Thu, 24 Nov 2016 18:52:14 +0000 (19:52 +0100)]
tests: facilitate background process debug in ceph-helpers.sh
When displaying the output of a background process, do it on stderr so
that it is not bufferized. Otherwise the output of the background
process may be displayed after it completed.
Prefix the output of a background process with the PID of the process
known to the parent instead of the PID of the awk process processing the
output. When wait_background loops, it will print the process on which
it is waiting and it is confusing that they do not match with the PID
prefixing the process output.
Refs: http://tracker.ceph.com/issues/17830
Signed-off-by: Loic Dachary <loic@dachary.org>
Kefu Chai [Thu, 24 Nov 2016 17:27:53 +0000 (01:27 +0800)]
Merge pull request #11733 from tchaikov/wip-17762
common: release g_ceph_context before returns
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Kefu Chai [Thu, 24 Nov 2016 17:24:13 +0000 (01:24 +0800)]
Merge pull request #12172 from dachary/wip-17830-eio
tests: osd-scrub-repair.sh abort if add_something fails
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 11:45:57 +0000 (19:45 +0800)]
crushtool: do not release g_ceph_context at exit
it is but a work around of occasionally timeout.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 15 Nov 2016 06:21:03 +0000 (14:21 +0800)]
common,test: g_ceph_context->put() upon return
prior to this change, global_init() could create a new CephContext
and assign it to g_ceph_context. it's our responsibilty to release
the CephContext explicitly using cct->put() before the application
quits. but sometimes, we fail to do so.
in this change, global_init() will return an intrusive_ptr<CephContext>,
which calls `g_ceph_context->put()` in its dtor. this ensures that
the CephContext is always destroyed before main() returns. so the
log is flushed before _log_exp_length is destroyed.
there are two cases where global_pre_init() is called directly.
- ceph_conf.cc: g_ceph_context->put() will be called by an intrusive_ptr<>
deleter.
- rgw_main.cc: global_init() is called later on on the success code
path, so it will be taken care of.
Fixes: http://tracker.ceph.com/issues/17762
Signed-off-by: Kefu Chai <kchai@redhat.com>
Paweł Sadowski [Mon, 21 Nov 2016 09:31:29 +0000 (10:31 +0100)]
doc: Add doc about osd scrub {during recovery|chunk {min|max}| sleep}
Signed-off-by: Paweł Sadowski <pawel.sadowski@corp.ovh.com>
Loic Dachary [Thu, 24 Nov 2016 13:27:10 +0000 (14:27 +0100)]
Merge pull request #10296 from songbaisen/b4
mon: small change on the HealthMonitor start_epoch function
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
John Spray [Thu, 17 Nov 2016 17:27:37 +0000 (17:27 +0000)]
doc: explain directory fragmenation settings
...and update the config ref.
Includes the new mds_bal_fragment_fast_factor setting.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 24 Nov 2016 10:28:09 +0000 (10:28 +0000)]
mds: try fragmenting new fragments during split
In case insertions have occurred during the split that would
immediately take the new fragments over the split threshold.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 17 Nov 2016 17:05:19 +0000 (17:05 +0000)]
mds: maybe_fragment earlier in openc
Check it during the initial request, not just
on completion, so that when doing lots of creates
we get a chance to split the directory before
it zooms past the size threshold.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 24 Nov 2016 10:27:06 +0000 (10:27 +0000)]
mds/MDBalancer: separate out fragmentation from hit_dir
In _fragment_finish we would like to try splitting
the new frags without applying a spurious hit to their
temperatures. Same for the start of openc where we would
like to do an early check for splitting without hitting
the dir twice.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 16 Nov 2016 14:08:36 +0000 (14:08 +0000)]
mds: more deterministic timing on frag split/join
...by using timer instead of tick()
Fixes: http://tracker.ceph.com/issues/17853
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 17 Nov 2016 23:14:53 +0000 (23:14 +0000)]
mds/MDBalancer: remove stale show_imports fn
This was just dropping its argument and
calling through to show_subtrees.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 17 Nov 2016 17:09:19 +0000 (17:09 +0000)]
common: remove unused mds_bal_merge_[rd|wr]
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 17 Nov 2016 23:19:33 +0000 (23:19 +0000)]
mds: fix fragment thrasher
The allows_dirfrags() test was in the wrong place, causing
in some cases a root fragment to be passed into queue_merge.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 16 Nov 2016 22:05:22 +0000 (22:05 +0000)]
mds: tweak merge/split counters
Increment these when we have finished splitting
or merging, not partway through the process.
This makes testing more deterministic: once I've seen
the counter increment, I'm sure that the children
no longer have STATE_FRAGMENTING set as a result of
their parent's split-in-progress.
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 16 Nov 2016 21:13:12 +0000 (21:13 +0000)]
mds: include fragmenting in state print
Signed-off-by: John Spray <john.spray@redhat.com>
John Spray [Thu, 10 Nov 2016 15:19:19 +0000 (15:19 +0000)]
mds: add a performance counter for dirfrag merge
Signed-off-by: John Spray <john.spray@redhat.com>
songbaisen [Thu, 24 Nov 2016 08:35:44 +0000 (16:35 +0800)]
mon: small change on the HealthMonitor start_epoch function
No need to call start_epoch function each time in the loop.
Signed-off-by: songbaisen <song.baisen@zte.com.cn>
Loic Dachary [Thu, 24 Nov 2016 07:32:33 +0000 (08:32 +0100)]
Merge pull request #9513 from songbaisen/a5
mon: Forbidden copy and assignment function in monoprequest
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Thu, 24 Nov 2016 07:01:51 +0000 (08:01 +0100)]
Merge pull request #12085 from wjwithagen/wip-freebsd-ceph-helpers-2
workunits/ceph-helpers.sh: Fixes for FreeBSD
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Loic Dachary [Thu, 24 Nov 2016 06:52:56 +0000 (07:52 +0100)]
tests: osd-scrub-repair.sh abort if add_something fails
If the script keeps going after this function fails, it will be non
trivial to find the root cause of the problem.
Signed-off-by: Loic Dachary <loic@dachary.org>
songbaisen [Thu, 28 Jul 2016 11:26:17 +0000 (19:26 +0800)]
osd: remove the redundant clear method in consume_map function
In the above loop before this to_remove to clear,we have remove all
the element.So this clear method is redundant.
Signed-off-by: song baisen <song.baisen@zte.com.cn>
Kefu Chai [Thu, 24 Nov 2016 03:53:32 +0000 (11:53 +0800)]
Merge pull request #11943 from wido/docs-pool-remove
doc: Add documentation about mon_allow_pool_delete before pool remove
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
root [Mon, 14 Nov 2016 02:41:26 +0000 (10:41 +0800)]
rgw:fix for deleting objects name beginning and ending with underscores of one bucket using POST method of AWS's js sdk.
Fixes: http://tracker.ceph.com/issues/17888
Signed-off-by: zhouruisong 236131368@qq.com
Willem Jan Withagen [Sun, 20 Nov 2016 19:57:53 +0000 (20:57 +0100)]
workunits/ceph-helpers.sh: Fixes for FreeBSD
- stat(1) does not have '%T'
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Sage Weil [Wed, 23 Nov 2016 22:05:37 +0000 (17:05 -0500)]
doc/dev/perf: a few notes on perf and flame graphs
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 23 Nov 2016 21:42:34 +0000 (16:42 -0500)]
Merge pull request #10402 from ceph/wip-openstack-wusui
qa: Add ceph-ansible installer.
Orit Wasserman [Wed, 23 Nov 2016 19:47:59 +0000 (20:47 +0100)]
Merge pull request #11673 from zhangsw/fix-rgw-initbucketshardsync-bug
rgw: Class member cookie is not initialized correctly in some coroutine's constructor.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Wed, 23 Nov 2016 19:46:55 +0000 (20:46 +0100)]
Merge pull request #11969 from yehudasa/wip-17897
rgw: don't store empty chains in gc
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Wed, 23 Nov 2016 19:45:07 +0000 (20:45 +0100)]
Merge pull request #11815 from ceph/wip-17792
rgw: remove circular reference in RGWAsyncRadosRequest
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
David Zafman [Wed, 23 Nov 2016 19:24:17 +0000 (11:24 -0800)]
Merge pull request #12142 from athanatos/wip-17966
osd: Fix read error propogation in ECBackend
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
John Spray [Wed, 23 Nov 2016 18:31:54 +0000 (18:31 +0000)]
Merge pull request #11994 from ukernel/wip-17193
mds: force client flush snap data before truncating objects
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
John Spray [Wed, 23 Nov 2016 18:29:16 +0000 (18:29 +0000)]
Merge pull request #11635 from batrick/mds-unique-ptr-
20161024
mds: more unique_pointer changes
Reviewed-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 23 Nov 2016 18:25:21 +0000 (18:25 +0000)]
Merge pull request #11917 from ajarr/wip-17800
ceph_volume_client: set an existing auth ID's default mon caps
Reviewed-by: John Spray <john.spray@redhat.com>
Igor Fedotov [Wed, 23 Nov 2016 18:13:06 +0000 (21:13 +0300)]
Merge pull request #11983 from liewegas/wip-bluestore-release
os/bluestore: fix alloc release timing on sync submits
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Samuel Just [Wed, 23 Nov 2016 16:44:15 +0000 (08:44 -0800)]
Merge pull request #12129 from wjin/fix_backoffthrottle_comment
common/Throttle: fix typo for BackoffThrottle
Reviewed-by: Samuel Just <sjust@redhat.com>
Loic Dachary [Wed, 23 Nov 2016 16:37:12 +0000 (17:37 +0100)]
Merge pull request #9643 from wjin/mon
mon: clean legacy code
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Samuel Just [Wed, 23 Nov 2016 15:52:35 +0000 (07:52 -0800)]
src/test: reenable test-erasure-eio.sh
Signed-off-by: Samuel Just <sjust@redhat.com>
Gregory Farnum [Wed, 23 Nov 2016 15:34:53 +0000 (10:34 -0500)]
Merge pull request #12000 from jcsp/wip-doc-exports
src/doc: fix class names in exports.txt
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Loic Dachary [Wed, 23 Nov 2016 15:34:33 +0000 (16:34 +0100)]
Merge pull request #10474 from songbaisen/b5
mon: remove the redudant jugement in LogMonitor tick function
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Loic Dachary [Wed, 23 Nov 2016 15:28:51 +0000 (16:28 +0100)]
Merge pull request #11631 from wolsen/issues/17689
upstart: start ceph-all after static-network-up
Reviewed-by: James Page <james.page@ubuntu.com>
Kefu Chai [Wed, 23 Nov 2016 15:21:32 +0000 (23:21 +0800)]
Merge pull request #12128 from tchaikov/wip-cmake
cmake: add -Wno-unknown-pragmas to CMAKE_CXX_FLAGS
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Sage Weil [Wed, 23 Nov 2016 15:00:44 +0000 (10:00 -0500)]
Merge pull request #12126 from branch-predictor/bp-doc-async-opts
doc/rados/configuration/ms-ref.rst: document a few async msgr options
Reviewed-by: Haomai Wang <haomai@xsky.com>
Sage Weil [Wed, 23 Nov 2016 14:58:00 +0000 (09:58 -0500)]
Merge pull request #12135 from kylinstorage/wip-remove-unneeded-forward-declaration
osd/PG.h: remove unneeded forward declaration
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 23 Nov 2016 14:15:13 +0000 (09:15 -0500)]
Merge pull request #12162 from liewegas/wip-coverity
script/run-coverity: update
Sage Weil [Wed, 23 Nov 2016 14:11:55 +0000 (09:11 -0500)]
script/run-coverity: -x
Signed-off-by: Sage Weil <sage@redhat.com>
Loic Dachary [Wed, 23 Nov 2016 14:05:42 +0000 (15:05 +0100)]
Merge pull request #11848 from javeme/case-CEPH_MSG_POOLOP
mon: move case CEPH_MSG_POOLOP to OSDs group
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Jason Dillaman [Wed, 23 Nov 2016 13:22:16 +0000 (08:22 -0500)]
Merge pull request #12160 from vshankar/wip-17973
librbd: mark request as finished after failed refresh
Piotr Dałek [Tue, 22 Nov 2016 11:04:27 +0000 (12:04 +0100)]
doc/rados/configuration/ms-ref.rst: document a few async msgr options
Documentation of a few of Async Messenger configuration options.
Signed-off-by: Piotr Dałek <git@predictor.org.pl>
Wido den Hollander [Fri, 11 Nov 2016 08:53:31 +0000 (09:53 +0100)]
doc: Add documentation about mon_allow_pool_delete before pool remove
Tell users they need to set this to true before Monitors will allow
pools to be removed.
Also update the Pending Release Notes so that users can find this change
there.
This was changed with commit
5d7f4ea
Signed-off-by: Wido den Hollander <wido@42on.com>
Kefu Chai [Wed, 23 Nov 2016 11:05:35 +0000 (19:05 +0800)]
Merge pull request #12055 from liewegas/wip-17942
osdc/Objecter: handle race between calc_target and handle_osd_map
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 11:02:53 +0000 (19:02 +0800)]
Merge pull request #11178 from stiopaa1/osd_pg_changeStructPGRecoveryStatsToClass
osd/PG.h: change PGRecoveryStats struct to class
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 11:01:04 +0000 (19:01 +0800)]
Merge pull request #12009 from
363921219 /master
osd: clean up process_peering_events
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 11:00:10 +0000 (19:00 +0800)]
Merge pull request #12031 from liewegas/wip-ceph-abort
common: assert(0) -> ceph_abort()
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Venky Shankar [Wed, 23 Nov 2016 09:05:03 +0000 (14:35 +0530)]
librbd: account m_processing when failing request after refresh
AioImageRequestWQ::_void_process() dequeues an item from the
work queue by invoking ThreadPool::_void_process() which also
performs accounting by incrementing ->m_processing which never
gets decremented if an image refresh fails. This is exactly
the flow when running test_lock_fence.sh which blacklists a
client and expects failed I/O operation from the client.
Without this fix, running test_lock_fence.sh in a loop fails
with an assert in PointerWQ dtor within 100 odd runs.
Fixes: http://tracker.ceph.com/issues/17973
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 10:48:04 +0000 (18:48 +0800)]
Merge pull request #12034 from wjwithagen/wip-wjw-freebsd-strtoll
common/strtol.cc: Get error testing also to work on FreeBSD
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 09:03:54 +0000 (17:03 +0800)]
Merge pull request #12150 from tchaikov/wip-kill-gf-complete-warnings
erasure-code: fix gf-complete warning
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 08:16:36 +0000 (16:16 +0800)]
cmake: regroup CMAKE_CXX_FLAGS and CMAKE_C_FLAGS
- some options are only meaningful for C++, so move them into
CMAKE_CXX_FLAGS.
- regroup CMAKE_CXX_FLAGS and CMAKE_C_FLAGS, and remove the duplicated
options.
- do not reset CMAKE_CXX_FLAGS with ${CMAKE_C_FLAGS}, instead, always
append ${CMAKE_C_FLAGS} to existing ${CMAKE_CXX_FLAGS}. so we don't
clobber CMAKE_CXX_FLAGS set by command line.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 07:55:15 +0000 (15:55 +0800)]
cmake: add -Wno-unknown-pragmas to CMAKE_C_FLAGS
this silences warnings like:
warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
and recent clang (3.9 and 4.0) do not complain at seeing
so we only pass this this param to gcc.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 07:32:42 +0000 (15:32 +0800)]
erasure-code: fix gf-complete warning
pick up latest gf-complete submodule
$ git log --no-merges --pretty=%s \
a6847973cba329ae079d3bd26341a4ec2906f012 ..
c431e1ff76bdce6c3f6c0d0cbdf6a01c68f81071
gf_w32.c: silence the -Wmaybe-uninitialized warning
it silences following warning:
ceph/src/erasure-code/jerasure/gf-complete/src/gf_w32.c: In
function ‘gf_w32_cfmgk_multiply_region_from_single’:
ceph/src/erasure-code/jerasure/gf-complete/src/gf_w32.c:410:5:
warning: ‘a’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
g = _mm_insert_epi64 (a, g_star, 0);
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 06:48:11 +0000 (14:48 +0800)]
FileStore::_do_fiemap: do not reference fiemap after it is freed
`last` points to fiemap::fm_extends[n], and if fiemap gets freed, we can
not reference any of its fieldis. so we could remember the check result before
freeing it.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 06:08:10 +0000 (14:08 +0800)]
hobject: better left-shift an unsigned
this silences the warning of
The result of the '<<' expression is undefined
quote from n3337, §5.8 expr.shift:
If E1 has an unsigned type, the value ... (is deterministic)...
Otherwise, if E1 has a signed type and non-negative value, and E1 x 2^E2
is representable in the result type, then that is the resulting value;
otherwise, the behavior is undefined.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 05:58:08 +0000 (13:58 +0800)]
osd_types: pg_t::is_split(): use unsigned for bits operations
this silences the warning of
The result of the '<<' expression is undefined
quote from n3337, §5.8 expr.shift:
If E1 has an unsigned type, the value ... (is deterministic)...
Otherwise, if E1 has a signed type and non-negative value, and E1 x 2^E2
is representable in the result type, then that is the resulting value;
otherwise, the behavior is undefined.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 05:45:49 +0000 (13:45 +0800)]
ReplicatedPG: check retcode before verifying trailing hole
this silences the warning of
Value stored to 'r' is never used.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 05:31:28 +0000 (13:31 +0800)]
common/blkdev: get_device_by_uuid() silence clang warning
early return if blkid_get_cache() fails. this chance is but cosmetic,
it pleases clang static analyzer which thinks that rc will be
overwritten if dev is nullptr.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 05:26:31 +0000 (13:26 +0800)]
global/signal_handler: retry if read() returns with EINTR
this silences the warning of
Value stored to 'r' is never used.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 05:21:44 +0000 (13:21 +0800)]
tools/ceph_radosacl: print out return code of "acl set"
this silences the warning of
Value stored to 'r' is never read.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Loic Dachary [Wed, 23 Nov 2016 06:39:44 +0000 (07:39 +0100)]
Merge pull request #12146 from dzafman/wip-dz-delays
tests: minor make check cleanup
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Kefu Chai [Wed, 23 Nov 2016 06:36:25 +0000 (14:36 +0800)]
Merge pull request #12136 from dachary/wip-17889-systemd-order
ceph-disk: resolve race conditions
Reviewed-by: Kefu Chai <kchai@redhat.com>
Brad Hubbard [Wed, 23 Nov 2016 06:07:28 +0000 (16:07 +1000)]
Merge pull request #12145 from tchaikov/wip-client-use-after-freed
client: trim_caps() do not dereference cap if it's removed
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>