]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoEC: Allow bench.sh to test ISA backend also 2868/head
Yuan Zhou [Thu, 6 Nov 2014 07:46:27 +0000 (15:46 +0800)]
EC: Allow bench.sh to test ISA backend also

Update bench.sh/plot tool to cover ISA backend.
ISA will output a fake echinique 'cauchy_good' so the plot tool
don't need to be changed.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agoObjectStore: Fix a error comment.
Jianpeng Ma [Mon, 27 Oct 2014 03:29:01 +0000 (11:29 +0800)]
ObjectStore: Fix a error comment.

Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agoObjectStore: Don't use largest_data_off to calc data_align.
Jianpeng Ma [Mon, 27 Oct 2014 03:22:13 +0000 (11:22 +0800)]
ObjectStore: Don't use largest_data_off to calc data_align.

If largest_data_off % CEPH_PAGE_SIZE != 0, the get_data_aligment return
a erro value. This make the FileJouranl::align_bl to memcopy much data.

Tested-by: Sage Weil <sage@redhat.com>
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years agobuffer: Add _memcopy_count to track total count of memcopy by rebuild/rebuild_page_al...
Jianpeng Ma [Fri, 24 Oct 2014 08:11:15 +0000 (16:11 +0800)]
buffer: Add _memcopy_count to track total count of memcopy by rebuild/rebuild_page_aligned/c_str.

Using thie filed, we know the payload of
rebuild/rebuild_page_aligned/c_str and tune performance accroding.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2856 from XinzeChi/master
Sage Weil [Tue, 4 Nov 2014 22:59:10 +0000 (14:59 -0800)]
Merge pull request #2856 from XinzeChi/master

osd: cache pool: flush object ignoring cache min flush age when cache pool is full

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosd: cache pool: flush object ignoring cache min flush age when cache pool is full 2856/head
Xinze Chi [Wed, 5 Nov 2014 01:00:01 +0000 (01:00 +0000)]
osd: cache pool: flush object ignoring cache min flush age when cache pool is full
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
10 years agodoc: Edited Key/Value store config reference.
John Wilkins [Tue, 4 Nov 2014 20:02:47 +0000 (12:02 -0800)]
doc: Edited Key/Value store config reference.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
10 years agodoc: Added Key/Value store config reference to index.
John Wilkins [Tue, 4 Nov 2014 20:02:28 +0000 (12:02 -0800)]
doc: Added Key/Value store config reference to index.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
10 years agoMerge pull request #2854 from ceph/wip-doc-openstack-juno
John Wilkins [Mon, 3 Nov 2014 23:08:11 +0000 (15:08 -0800)]
Merge pull request #2854 from ceph/wip-doc-openstack-juno

doc: Update for OpenStack Juno.

New users working with Nova (Juno) noted that libvirt settings are now under a [libvirt] section, and truncate the leading libvirt_. Made subsections for Havana and Icehouse, added a new subsection for Juno.

10 years agodoc: Update for OpenStack Juno. 2854/head
John Wilkins [Mon, 3 Nov 2014 22:04:33 +0000 (14:04 -0800)]
doc: Update for OpenStack Juno.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
10 years agoMerge pull request #2849 from ceph/wip-buffer
Sage Weil [Sun, 2 Nov 2014 23:17:38 +0000 (15:17 -0800)]
Merge pull request #2849 from ceph/wip-buffer

RFC: buffer: implement list::get_contiguous

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
10 years agobuffer: implement list::get_contiguous 2849/head
Sage Weil [Sat, 1 Nov 2014 04:29:42 +0000 (21:29 -0700)]
buffer: implement list::get_contiguous

Return a pointer to a contiguous range of the bufferlist, rebuilding
into a contiguous region as needed.  For now, if we need to rebuild,
we just do the whole thing.  We can obviously optimize this later to
rebuild on the necessary region, but this is good enough for the
(presumably) common case where the needed region is already in fact
contiguous.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd/ReplicatedPG: fix compile error
Sage Weil [Sat, 1 Nov 2014 02:33:59 +0000 (19:33 -0700)]
osd/ReplicatedPG: fix compile error

From 1fef4c3d541cba360738437420ebfa2447d5802e.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2816 from XinzeChi/master
Sage Weil [Sat, 1 Nov 2014 00:16:30 +0000 (17:16 -0700)]
Merge pull request #2816 from XinzeChi/master

Get the currently atime of the object in cache pool for eviction

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2796 from ceph/wip-rwtimer
Sage Weil [Fri, 31 Oct 2014 17:55:01 +0000 (10:55 -0700)]
Merge pull request #2796 from ceph/wip-rwtimer

common/Timer: kill RWTimer

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge pull request #2826 from wonzhq/evict-atime-nohitset
Sage Weil [Fri, 31 Oct 2014 17:50:31 +0000 (10:50 -0700)]
Merge pull request #2826 from wonzhq/evict-atime-nohitset

osd: tiering: calculate object age during eviction when there is no hit set

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2827 from thesues/fix-hang
Sage Weil [Fri, 31 Oct 2014 17:17:24 +0000 (10:17 -0700)]
Merge pull request #2827 from thesues/fix-hang

Fix rados_shutdown hang forever when using radosstriper

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2813 from ceph/wip-9894
Gregory Farnum [Fri, 31 Oct 2014 15:18:12 +0000 (08:18 -0700)]
Merge pull request #2813 from ceph/wip-9894

client: fix I_COMPLETE_ORDERED checking

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoFix rados_shutdown hang forever when using radosstriper 2827/head
Dongmao Zhang [Wed, 29 Oct 2014 03:25:43 +0000 (11:25 +0800)]
Fix rados_shutdown hang forever when using radosstriper

Dear list,

I have met this when I was using radosstriper C API. My program is
roughly like this:

    rados_striper_aio_write
    rados_aio_flush
    rados_aio_wait_for_safe
    rados_aio_release
    rados_striper_destroy
    rados_ioctx_destroy
    rados_shutdown /Hangs here/

In most time, this works well, But the programm occasionally
hangs forever. Output of gstack:

Thread 1 (Thread 0x7fe0afba0760 (LWP 18509)):
0 0x000000330f20822d in pthread_join () from /lib64/libpthread.so.0
1 0x000000347566cea2 in Thread::join(void**) () from
/usr/lib64/librados.so.2
2 0x00000034755ac535 in librados::RadosClient::shutdown() () from
/usr/lib64/librados.so.2
3 0x0000003475592269 in rados_shutdown () from /usr/lib64/librados.so.2
4 0x0000000000402349 in main ()

Thread 4 (Thread 0x7fe0ab14d700 (LWP 18541)):
0 0x000000330f20e264 in __lll_lock_wait () from /lib64/libpthread.so.0
1 0x000000330f209508 in _L_lock_854 () from /lib64/libpthread.so.0
2 0x000000330f2093d7 in pthread_mutex_lock () from
/lib64/libpthread.so.0
3 0x0000003475633af1 in Mutex::Lock(bool) () from
/usr/lib64/librados.so.2
4 0x00000034755abd37 in librados::RadosClient::put() () from
/usr/lib64/librados.so.2
5 0x0000003475592501 in librados::Rados::shutdown() () from
/usr/lib64/librados.so.2
6 0x00007fe0afbba9f7 in
libradosstriper::RadosStriperImpl::CompletionData::~CompletionData() ()
from /usr/lib64/libradosstriper.so.1
7 0x00007fe0afbbaad9 in
libradosstriper::RadosStriperImpl::WriteCompletionData::~WriteCompletionData()
() from /usr/lib64/libradosstriper.so.1
8 0x00007fe0afbc1d75 in RefCountedObject::put() () from
/usr/lib64/libradosstriper.so.1
9 0x00007fe0afbc224d in
libradosstriper::MultiAioCompletionImpl::safe_request(long) () from
/usr/lib64/libradosstriper.so.1
10 0x00000034755c5ce8 in librados::C_AioSafe::finish(int) () from
/usr/lib64/librados.so.2
11 0x00000034755a0e89 in Context::complete(int) () from
/usr/lib64/librados.so.2
12 0x000000347564d4c8 in Finisher::finisher_thread_entry() () from
/usr/lib64/librados.so.2
13 0x000000330f2079d1 in start_thread () from /lib64/libpthread.so.0
14 0x000000330eae886d in clone () from /lib64/libc.so.6

It is obvious that librados::Rados::shutdown is not a thread-safe
function here. It will hang forever. The culprit of this is when
CompletionData is released, it will first notify
"rados_aio_wait_for_safe" to continue, and CompletionData will call
put() to release other data. But if the main thread(Thread 1 here) runs
fast enough, rados_striper_destroy will be executed before other
thread(Thread 4 here)'s releasing refcnf. In this situation, main thread
runs Rados::shutdown() while other thread runs Rados::shutdown() in the
same time.

My suggestion is to let RadosStriperImpl::aio_flush to block until all
the CompletionData has been released. This makes sure other thread will
never call rados_shutdown.

10 years agoMerge pull request #2843 from dachary/wip-9752-past-intervals
Gregory Farnum [Fri, 31 Oct 2014 01:33:15 +0000 (18:33 -0700)]
Merge pull request #2843 from dachary/wip-9752-past-intervals

osd: past_interval display bug on acting

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoosd: past_interval display bug on acting 2843/head
Loic Dachary [Thu, 30 Oct 2014 23:49:21 +0000 (00:49 +0100)]
osd: past_interval display bug on acting

The acting array was incorrectly including the primary and up_primary.

http://tracker.ceph.com/issues/9752 Fixes: #9752

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2835 from leseb/doc-rbd-juno
Josh Durgin [Thu, 30 Oct 2014 20:22:06 +0000 (13:22 -0700)]
Merge pull request #2835 from leseb/doc-rbd-juno

doc: update RBD for Juno

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2831 from yuyuyu101/async-kqueue
Sage Weil [Thu, 30 Oct 2014 18:35:43 +0000 (11:35 -0700)]
Merge pull request #2831 from yuyuyu101/async-kqueue

AsyncMessenger: Add kqueue support

10 years agoMerge pull request #2839 from ceph/wip-9944
Josh Durgin [Thu, 30 Oct 2014 18:31:34 +0000 (11:31 -0700)]
Merge pull request #2839 from ceph/wip-9944

osdc/Objecter: fix null dref when pool dne

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoMerge pull request #2811 from ceph/wip-vstart
Dan Mick [Thu, 30 Oct 2014 18:19:01 +0000 (11:19 -0700)]
Merge pull request #2811 from ceph/wip-vstart

init-ceph: make ./init-ceph behave from src dir on systemd

10 years agoosdc/Objecter: fix null dref when pool dne 2839/head
Sage Weil [Thu, 30 Oct 2014 17:56:36 +0000 (10:56 -0700)]
osdc/Objecter: fix null dref when pool dne

If the base pool does not exist, we need to avoid dereferencing pi.
This simplest fix is to return with POOL_DNE early and skip all of the
checks.

Note that there is one other small semantic change in this function: if
we are using the precalc_pgid then base_oloc pool has to match.  But
the list_objects() caller does that, so we're fine.

Backport: giant
Fixes: #9944
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2837 from ceph/wip-9945
Sage Weil [Thu, 30 Oct 2014 17:05:36 +0000 (10:05 -0700)]
Merge pull request #2837 from ceph/wip-9945

messages: fix COMPAT_VERSION on MClientSession

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomessages: fix COMPAT_VERSION on MClientSession 2837/head
John Spray [Thu, 30 Oct 2014 16:43:21 +0000 (16:43 +0000)]
messages: fix COMPAT_VERSION on MClientSession

This was incorrectly incremented to 2 by omission
of an explicit COMPAT_VERSION value.

Fixes: #9945
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2830 from ceph/wip-9800-giant
Gregory Farnum [Thu, 30 Oct 2014 16:14:00 +0000 (09:14 -0700)]
Merge pull request #2830 from ceph/wip-9800-giant

client: allow xattr caps in inject_release_failure

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
10 years agoMerge pull request #2834 from dachary/wip-warning
Loic Dachary [Thu, 30 Oct 2014 11:20:36 +0000 (12:20 +0100)]
Merge pull request #2834 from dachary/wip-warning

tests: fix signed/unsigned warning

Reviewed-by: Christophe Courtaut <christophe.courtaut@gmail.com>
10 years agodoc: update RBD for Juno 2835/head
Sébastien Han [Thu, 30 Oct 2014 10:59:14 +0000 (11:59 +0100)]
doc: update RBD for Juno

This commit introduces some updates for the OpenStack Juno release. New
flags have been added, many trailing spaces were removed and a new
recommendation for Glance cache management has been added too.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
10 years agodoc/release-notes: it's 8MB, not 32MB
Sage Weil [Thu, 30 Oct 2014 05:54:26 +0000 (22:54 -0700)]
doc/release-notes: it's 8MB, not 32MB

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomsg/Pipe: discard delay queue before incoming queue
Sage Weil [Wed, 29 Oct 2014 21:45:11 +0000 (14:45 -0700)]
msg/Pipe: discard delay queue before incoming queue

Shutdown the delayed delivery before the incoming queue in case the
DelayedDelivery thread is busy queuing messages.

Fixes: #9910
Signed-off-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoMerge tag 'v0.87'
Sage Weil [Wed, 29 Oct 2014 20:50:24 +0000 (13:50 -0700)]
Merge tag 'v0.87'

v0.87

10 years agoMerge pull request #2829 from ceph/wip-doc-fs-quickstart
Sage Weil [Wed, 29 Oct 2014 20:08:52 +0000 (13:08 -0700)]
Merge pull request #2829 from ceph/wip-doc-fs-quickstart

doc: include 'fs new' stuff in cephfs quickstart

10 years agoMerge pull request #2828 from Vicente-Cheng/master
Josh Durgin [Wed, 29 Oct 2014 19:16:08 +0000 (12:16 -0700)]
Merge pull request #2828 from Vicente-Cheng/master

rbd: Fix the rbd export when image size more than 2G

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years ago0.87 v0.87
Jenkins [Wed, 29 Oct 2014 18:03:55 +0000 (11:03 -0700)]
0.87

10 years agoAsyncMessenger: Add kqueue support 2831/head
Haomai Wang [Wed, 29 Oct 2014 08:48:07 +0000 (16:48 +0800)]
AsyncMessenger: Add kqueue support

AsyncMessenger will select event driver following epoll, kqueue and
select(now not exists) sequence

Fix #9926
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoclient: allow xattr caps in inject_release_failure 2830/head
John Spray [Mon, 27 Oct 2014 12:02:17 +0000 (12:02 +0000)]
client: allow xattr caps in inject_release_failure

Because some test environments generate spurious
rmxattr operations, allow the client to release
'X' caps.  Allows xattr operations to proceed
while still preventing client releasing other caps.

Fixes: #9800
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 5691c68a0a44eb2cdf0afb3f39a540f5d42a5c0c)

10 years agodoc: include 'fs new' stuff in cephfs quickstart 2829/head
John Spray [Wed, 29 Oct 2014 10:57:09 +0000 (10:57 +0000)]
doc: include 'fs new' stuff in cephfs quickstart

Not sure how 'quick' this really is now compared with
the full filesystem instructions, but let's not leave
it incomplete.

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoGet the currently atime of the object in cache pool for eviction 2816/head
Xinze Chi [Wed, 29 Oct 2014 07:11:11 +0000 (07:11 +0000)]
Get the currently atime of the object in cache pool for eviction

Because if there are mutiple atime in agent_state for the same object, we should use the recently one.

Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
10 years agotests: fix signed/unsigned warning 2834/head
Loic Dachary [Tue, 28 Oct 2014 22:38:48 +0000 (23:38 +0100)]
tests: fix signed/unsigned warning

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agorbd: Fix the rbd export when image size more than 2G 2828/head
Vicente Cheng [Wed, 29 Oct 2014 04:21:11 +0000 (12:21 +0800)]
rbd: Fix the rbd export when image size more than 2G

When using export <image-name> <path> and the size of image is more
than 2G, the previous version about finish() could not handle in
seeking the offset in image and return error.

This is caused by the incorrect variable type. Try to use the correct
variable type to fixed it.

I use another variable which type is uint64_t for confirming seeking
and still use the previous r for return error.

uint64_t is more better than type int for handle lseek64().

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
10 years agoosd: tiering: calculate object age during eviction when there is no hit 2826/head
Zhiqiang Wang [Wed, 29 Oct 2014 02:45:50 +0000 (10:45 +0800)]
osd: tiering: calculate object age during eviction when there is no hit
set

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
10 years agoMerge pull request #2823 from dachary/wip-9919-injectargs-side-effects
Sage Weil [Wed, 29 Oct 2014 00:03:17 +0000 (17:03 -0700)]
Merge pull request #2823 from dachary/wip-9919-injectargs-side-effects

qa: avoid qa/workunits/cephtool/test.sh unstability

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoqa: avoid qa/workunits/cephtool/test.sh unstability 2823/head
Loic Dachary [Tue, 28 Oct 2014 21:09:58 +0000 (22:09 +0100)]
qa: avoid qa/workunits/cephtool/test.sh unstability

For testing injectargs a configuration option was changed that has side
effects on the cluster. It could introduce random failures later. It is
replaced with a configuration option that cannot have adverse side
effects on the cluster.

http://tracker.ceph.com/issues/9919 Fixes: #9919

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge remote-tracking branch 'origin/giant'
Josh Durgin [Tue, 28 Oct 2014 20:10:52 +0000 (13:10 -0700)]
Merge remote-tracking branch 'origin/giant'

10 years agoMerge remote-tracking branch 'origin/wip-9806-giant' into giant
Josh Durgin [Tue, 28 Oct 2014 20:08:05 +0000 (13:08 -0700)]
Merge remote-tracking branch 'origin/wip-9806-giant' into giant

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoMerge pull request #2809 from ceph/wip-9800
John Spray [Tue, 28 Oct 2014 12:29:29 +0000 (12:29 +0000)]
Merge pull request #2809 from ceph/wip-9800

client: allow xattr caps in inject_release_failure

Reviewed-by: Greg Farnum <greg@inktank.com>
10 years agoclient: allow xattr caps in inject_release_failure 2809/head
John Spray [Mon, 27 Oct 2014 12:02:17 +0000 (12:02 +0000)]
client: allow xattr caps in inject_release_failure

Because some test environments generate spurious
rmxattr operations, allow the client to release
'X' caps.  Allows xattr operations to proceed
while still preventing client releasing other caps.

Fixes: #9800
Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #2818 from hjwsm1989/master
Loic Dachary [Tue, 28 Oct 2014 07:28:17 +0000 (08:28 +0100)]
Merge pull request #2818 from hjwsm1989/master

  Fix the match error when starting OSD daemons.

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years ago Fix the match error when starting OSD daemons. 2818/head
huangjun [Tue, 28 Oct 2014 07:05:37 +0000 (15:05 +0800)]
  Fix the match error when starting OSD daemons.
  If we have osd.7 and osd.77 on the same host, osd.7 will not be mounted if
  osd.77 is mounted.
Signed-off-by: huangjun <hjwsm1989@gmail.com>
10 years agoMerge pull request #2815 from wonzhq/evict-atime
Sage Weil [Tue, 28 Oct 2014 02:44:37 +0000 (19:44 -0700)]
Merge pull request #2815 from wonzhq/evict-atime

osd: cache tiering: fix the atime logic of the eviction

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoosd: cache tiering: fix the atime logic of the eviction 2815/head
Zhiqiang Wang [Tue, 28 Oct 2014 01:37:11 +0000 (09:37 +0800)]
osd: cache tiering: fix the atime logic of the eviction

Reported-by: Xinze Chi <xmdxcxz@gmail.com>
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
10 years agoMerge pull request #2786 from ceph/wip-9869
Yan, Zheng [Tue, 28 Oct 2014 01:32:14 +0000 (18:32 -0700)]
Merge pull request #2786 from ceph/wip-9869

client: cast m->get_client_tid() to compare to 16-bit Inode::flushing_cap_tid

10 years agoclient: cast m->get_client_tid() to compare to 16-bit Inode::flushing_cap_tid 2786/head
Greg Farnum [Thu, 23 Oct 2014 00:16:31 +0000 (17:16 -0700)]
client: cast m->get_client_tid() to compare to 16-bit Inode::flushing_cap_tid

m->get_client_tid() is 64 bits (as it should be), but Inode::flushing_cap_tid
is only 16 bits. 16 bits should be plenty to let the cap flush updates
pipeline appropriately, but we need to cast in the proper direction when
comparing these differently-sized versions. So downcast the 64-bit one
to 16 bits.

Fixes: #9869
Backport: giant, firefly, dumpling

Signed-off-by: Greg Farnum <greg@inktank.com>
10 years agoclient: fix I_COMPLETE_ORDERED checking 2813/head
Yan, Zheng [Mon, 27 Oct 2014 20:57:16 +0000 (13:57 -0700)]
client: fix I_COMPLETE_ORDERED checking

Current code marks a directory inode as complete and ordered when readdir
finishes, but it does not check if the directory was modified in the middle
of readdir. This is wrong, directory inode should not be marked as ordered
if it was modified during readddir

The fix is introduce a new counter to the inode data struct, we increase
the counter each time the directory is modified. When readdir finishes, we
check the counter to decide if the directory should be marked as ordered.

Fixes: #9894
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoinit-ceph: make ./init-ceph behave from src dir on systemd 2811/head
Sage Weil [Mon, 27 Oct 2014 21:53:26 +0000 (14:53 -0700)]
init-ceph: make ./init-ceph behave from src dir on systemd

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2802 from dachary/wip-mailmap
Danny Al-Gaaf [Mon, 27 Oct 2014 21:53:07 +0000 (22:53 +0100)]
Merge pull request #2802 from dachary/wip-mailmap

mailmap: Federico Gimenez affiliation

Reviewed-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agounittest_shared_cache: fix build line
Sage Weil [Mon, 27 Oct 2014 20:37:45 +0000 (13:37 -0700)]
unittest_shared_cache: fix build line

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Mon, 27 Oct 2014 20:33:48 +0000 (13:33 -0700)]
Merge remote-tracking branch 'gh/giant'

Conflicts:
src/test/common/test_shared_cache.cc

10 years agodoc/release-notes: giant notes
Sage Weil [Mon, 27 Oct 2014 20:29:12 +0000 (13:29 -0700)]
doc/release-notes: giant notes

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2630 from ceph/wip-9545
Samuel Just [Mon, 27 Oct 2014 20:20:16 +0000 (13:20 -0700)]
Merge pull request #2630 from ceph/wip-9545

os/FileStore: do not loop in sync_entry on shutdown

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agorgw_rest_client.cc: remove self assignment of new_info.effective_uri
Danny Al-Gaaf [Thu, 23 Oct 2014 17:52:14 +0000 (19:52 +0200)]
rgw_rest_client.cc: remove self assignment of new_info.effective_uri

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge branch 'wip-da-SCA-20141025'
Sage Weil [Mon, 27 Oct 2014 19:44:34 +0000 (12:44 -0700)]
Merge branch 'wip-da-SCA-20141025'

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agotest/librbd/fsx.c: fix indentation (NESTING_INDENT_MISMATCH)
Danny Al-Gaaf [Mon, 27 Oct 2014 17:24:36 +0000 (18:24 +0100)]
test/librbd/fsx.c: fix indentation (NESTING_INDENT_MISMATCH)

Fix indentation to the same as the original fsx.c .

Fix for Coverity issue:

CID 1219473 (#1-2 of 2): Nesting level does not match indentation
(NESTING_INDENT_MISMATCH)
 uncle: This statement is indented to column 25, as if it were
 nested within the preceding parent statement, but it is not.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agolibradosstriper/striping.cc: fix strdup memory leaks
Danny Al-Gaaf [Mon, 27 Oct 2014 17:08:13 +0000 (18:08 +0100)]
libradosstriper/striping.cc: fix strdup memory leaks

Fix memory leak caused by using std::string to hold result
of strdup call returned from getObjName().

Fix for Coverity issues:

CID 1221525 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Failing to save or free storage allocated by
 this->getObjName(soid, 0UL) leaks it.

CID 1221526 (1-3 of 3): Resource leak (RESOURCE_LEAK)
 leaked_storage: Failing to save or free storage allocated by
 this->getObjName(soid, *) leaks it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/libradosstriper/striping.cc: fix wrong indentation
Danny Al-Gaaf [Mon, 27 Oct 2014 12:26:07 +0000 (13:26 +0100)]
test/libradosstriper/striping.cc: fix wrong indentation

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomsg/async/Event.cc: use static_cast instead of c-style cast
Danny Al-Gaaf [Mon, 27 Oct 2014 11:01:56 +0000 (12:01 +0100)]
msg/async/Event.cc: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_formats.cc: fix realloc memory leak
Danny Al-Gaaf [Mon, 27 Oct 2014 10:09:01 +0000 (11:09 +0100)]
rgw/rgw_formats.cc: fix realloc memory leak

Fix handling of realloc. If realloc() fails it returns NULL, assigning
the return value of realloc() directly to the pointer without checking
for the result will lead to a memory leak in error case.

Use a temporary pointer to hold the result of realloc(). In error case
print error and exit, otherwise assign it to the pointer we want to realloc.

Fix also error checks for malloc to fail as soon as malloc fails and
don't try to run realloc again after failed malloc.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoarch/neon.c: check result of fread()
Danny Al-Gaaf [Sun, 26 Oct 2014 19:56:25 +0000 (20:56 +0100)]
arch/neon.c: check result of fread()

Fix for:

CID 1128384 (#1 of 1): Ignoring number of bytes read (CHECKED_RETURN)
 check_return: fread(void * restrict, size_t, size_t, FILE * restrict)
 returns the number of bytes read, but it is ignored.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocls_rgw_client.cc: fix potential null pointer deref
Danny Al-Gaaf [Sun, 26 Oct 2014 17:28:50 +0000 (18:28 +0100)]
cls_rgw_client.cc: fix potential null pointer deref

Fix for:

CID 1054853 (#1 of 1): Dereference before null check (REVERSE_INULL)
 check_after_deref: Null-checking is_truncated suggests that it may
 be null, but it has already been dereferenced on all paths leading
 to the check.

Add vim line to file.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoSyntheticClient.cc: check return value of getdir()
Danny Al-Gaaf [Sun, 26 Oct 2014 17:19:58 +0000 (18:19 +0100)]
SyntheticClient.cc: check return value of getdir()

Check return value as done in all other places. Fix error messages
to print correct function name getdir and not read_dir/readdir since
the error isn't necessarily raised by read_dir().

Fix for:
CID 1219463 (#1 of 1): Unchecked return value (CHECKED_RETURN)
 check_return: Calling getdir without checking return value (as
 is done elsewhere 4 out of 5 times).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoSyntheticClient.cc: remove empty lines in if/else blocks
Danny Al-Gaaf [Sun, 26 Oct 2014 17:13:59 +0000 (18:13 +0100)]
SyntheticClient.cc: remove empty lines in if/else blocks

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_rbd_replay.cc: fix va_list parameter handling
Danny Al-Gaaf [Sun, 26 Oct 2014 17:07:48 +0000 (18:07 +0100)]
test_rbd_replay.cc: fix va_list parameter handling

Fix for:

[src/test/test_rbd_replay.cc:193]: (portability) Passing NULL after the
last typed argument to a variadic function leads to undefined behaviour.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoAsyncConnection.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Sat, 25 Oct 2014 08:44:16 +0000 (10:44 +0200)]
AsyncConnection.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomon_store_converter.cc: move convert() call out of assert()
Danny Al-Gaaf [Thu, 23 Oct 2014 17:56:47 +0000 (19:56 +0200)]
mon_store_converter.cc: move convert() call out of assert()

The convert() call is changing data. To prevent Heisenbugs
depending in NDEBUG definition (e.g. if debug is off).

Move convert() call out of the assert call and use assert
only on the result value of the call.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_str_map.cc: remove unused variable
Danny Al-Gaaf [Thu, 23 Oct 2014 17:56:29 +0000 (19:56 +0200)]
test_str_map.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_rest_user.cc: reduce scope of key_type
Danny Al-Gaaf [Thu, 23 Oct 2014 17:55:55 +0000 (19:55 +0200)]
rgw/rgw_rest_user.cc: reduce scope of key_type

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_rest_swift.cc: use empty() instead of size()
Danny Al-Gaaf [Thu, 23 Oct 2014 17:54:02 +0000 (19:54 +0200)]
rgw/rgw_rest_swift.cc: use empty() instead of size()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_rest_s3.cc: use !empty() instead of size() > 0
Danny Al-Gaaf [Thu, 23 Oct 2014 17:53:02 +0000 (19:53 +0200)]
rgw/rgw_rest_s3.cc: use !empty() instead of size() > 0

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2805 from xinxinsh/wip-check-trimmed-pg-log
Sage Weil [Mon, 27 Oct 2014 18:04:23 +0000 (11:04 -0700)]
Merge pull request #2805 from xinxinsh/wip-check-trimmed-pg-log

check to_remove before setting transaction

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2808 from ceph/wip-crush-link-id
Sage Weil [Mon, 27 Oct 2014 18:03:53 +0000 (11:03 -0700)]
Merge pull request #2808 from ceph/wip-crush-link-id

mon: fix `osd crush link` id resolution

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2589 from majianpeng/bug-fix
Sage Weil [Mon, 27 Oct 2014 18:02:30 +0000 (11:02 -0700)]
Merge pull request #2589 from majianpeng/bug-fix

Clock: Using clock_gettime instead of gettimeofday in linux os.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2806 from zhouyuan/lrc_dead_code
Loic Dachary [Mon, 27 Oct 2014 16:06:12 +0000 (17:06 +0100)]
Merge pull request #2806 from zhouyuan/lrc_dead_code

Remove dead code in EC LRC plugin

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agomon: fix `osd crush link` id resolution 2808/head
John Spray [Mon, 27 Oct 2014 10:50:54 +0000 (10:50 +0000)]
mon: fix `osd crush link` id resolution

A junk value for ID was falling through from
the outer scope.  Rename the outer one to
`osdid` and look up `id` explicitly in crush link.

For a bonus also add an error string for when
link_bucket returns an error (previously
would get plain "Error EINVAL")

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoRemove dead code in EC LRC plugin 2806/head
Yuan Zhou [Mon, 27 Oct 2014 07:08:12 +0000 (15:08 +0800)]
Remove dead code in EC LRC plugin

The layer_minimum_to_decode() seems to be dead.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agocheck to_remove before setting transaction 2805/head
xinxin shu [Sun, 26 Oct 2014 21:25:54 +0000 (05:25 +0800)]
check to_remove before setting transaction

currently if you dump transaction for a single rbd write, a transaction
of OMAP_RMKEYS will be listed even if to_remove is empty.

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoMerge pull request #2800 from ceph/wip-enoent-race
João Eduardo Luís [Sun, 26 Oct 2014 18:58:50 +0000 (18:58 +0000)]
Merge pull request #2800 from ceph/wip-enoent-race

os/LevelDBStore, RocksDBStore: fix race handling for get store size

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agorgw/rgw_rados.cc: remove unused variable 'objs'
Danny Al-Gaaf [Thu, 23 Oct 2014 17:51:33 +0000 (19:51 +0200)]
rgw/rgw_rados.cc: remove unused variable 'objs'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/ReplicatedPG.cc: use !empty() instead of size() > 0
Danny Al-Gaaf [Thu, 23 Oct 2014 17:50:10 +0000 (19:50 +0200)]
osd/ReplicatedPG.cc: use !empty() instead of size() > 0

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoPGLog.cc: reduce scope of variable
Danny Al-Gaaf [Thu, 23 Oct 2014 17:49:30 +0000 (19:49 +0200)]
PGLog.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocommon/escape.c: add cppcheck-suppress
Danny Al-Gaaf [Thu, 23 Oct 2014 17:48:57 +0000 (19:48 +0200)]
common/escape.c: add cppcheck-suppress

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agofuse_ll.cc: use reinterpret_cast instead of c-style cast
Danny Al-Gaaf [Thu, 23 Oct 2014 17:48:21 +0000 (19:48 +0200)]
fuse_ll.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoJournalScanner.cc: reduce scope of local variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:58:45 +0000 (10:58 +0200)]
JournalScanner.cc: reduce scope of local variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_disk_bw.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:57:43 +0000 (10:57 +0200)]
test_disk_bw.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoobjectstore/store_test.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:56:50 +0000 (10:56 +0200)]
objectstore/store_test.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestErasureCodeIsa.cc: reduce scope of 'err' variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:51:30 +0000 (10:51 +0200)]
TestErasureCodeIsa.cc: reduce scope of 'err' variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestCrushWrapper.cc: reduce scope of variabele
Danny Al-Gaaf [Wed, 22 Oct 2014 08:50:48 +0000 (10:50 +0200)]
TestCrushWrapper.cc: reduce scope of variabele

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_sharedptr_registry.cc: reduce scope of local variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:50:15 +0000 (10:50 +0200)]
test_sharedptr_registry.cc: reduce scope of local variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>