]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoosdc/Objecter: ignore messenger events before or after initalized
Sage Weil [Mon, 21 Jul 2014 04:14:04 +0000 (21:14 -0700)]
osdc/Objecter: ignore messenger events before or after initalized

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomon/MonClient: fix shutdown typo
Sage Weil [Mon, 21 Jul 2014 04:11:40 +0000 (21:11 -0700)]
mon/MonClient: fix shutdown typo

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agolibrados dispatch fix
Sage Weil [Mon, 21 Jul 2014 04:06:57 +0000 (21:06 -0700)]
librados dispatch fix

10 years agoclient: let Objecter dispatch directly
Sage Weil [Mon, 21 Jul 2014 03:50:00 +0000 (20:50 -0700)]
client: let Objecter dispatch directly

Add Objecter as a direct dispatcher.  Drop all of the callbacks and
messages we were passing along.  Wrap the IO completions in client_lock
(via C_Lock) and shunt them to the objecter_finisher.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoclient: add a Finisher for the Objecter
Sage Weil [Mon, 21 Jul 2014 03:49:19 +0000 (20:49 -0700)]
client: add a Finisher for the Objecter

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinclude/Context: add generic C_Lock
Sage Weil [Mon, 21 Jul 2014 03:47:22 +0000 (20:47 -0700)]
include/Context: add generic C_Lock

Wrap a callback in a Mutex.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: push objecter completions to a Finisher
Sage Weil [Sun, 20 Jul 2014 22:00:55 +0000 (15:00 -0700)]
mds: push objecter completions to a Finisher

Most/all of the MDS completions need to be reentrant (and potentially
call back into the Objecter).  Shove them all onto a Finisher to make
sure that is safe.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: mark objecter completions with _IO_, take mds_lock
Sage Weil [Sun, 20 Jul 2014 21:51:28 +0000 (14:51 -0700)]
mds: mark objecter completions with _IO_, take mds_lock

For any completion we pass directly to Objecter, make sure we take the
mds_lock in finish(), and mark the class with _IO_ in the name.

Note that this doesn't address the use of Journaler.  And this assumes that
we are not holding the mds_lock already when Objecter::handle_osd_op_reply
is called.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: take over ownership of OSDMap
Sage Weil [Sun, 20 Jul 2014 21:16:49 +0000 (14:16 -0700)]
osdc/Objecter: take over ownership of OSDMap

Instead of taking a pointer to an existing OSDMap in our constructor,
allocate our own, so that we completely own it.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: make OSDMap private
Sage Weil [Sun, 20 Jul 2014 21:16:00 +0000 (14:16 -0700)]
osdc/Objecter: make OSDMap private

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Filer: use lock-safe OSDMap accessors
Sage Weil [Sun, 20 Jul 2014 21:15:41 +0000 (14:15 -0700)]
osdc/Filer: use lock-safe OSDMap accessors

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds/SnapServer: use lock safe OSDMap accessors
Sage Weil [Sun, 20 Jul 2014 21:11:49 +0000 (14:11 -0700)]
mds/SnapServer: use lock safe OSDMap accessors

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: use lock-safe OSDMap accessors; adjust Objecter wait_for_map call
Sage Weil [Sun, 20 Jul 2014 21:10:41 +0000 (14:10 -0700)]
mds: use lock-safe OSDMap accessors; adjust Objecter wait_for_map call

We need to handle a race between when we inspect the OSDMap and when we
try to wait for the next map.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: use lock safe OSDMap accessors for TMAP2OMAP check
Sage Weil [Sun, 20 Jul 2014 20:41:15 +0000 (13:41 -0700)]
mds: use lock safe OSDMap accessors for TMAP2OMAP check

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoclient/SyntheticClient: use lock safe OSDMap accessors
Sage Weil [Sun, 20 Jul 2014 20:38:38 +0000 (13:38 -0700)]
client/SyntheticClient: use lock safe OSDMap accessors

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agotest_mon_workloadgen: use Objecter::wait_for_osd_map
Sage Weil [Sun, 20 Jul 2014 20:38:19 +0000 (13:38 -0700)]
test_mon_workloadgen: use Objecter::wait_for_osd_map

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: make wait_for_osd_map() locking safe
Sage Weil [Sun, 20 Jul 2014 20:36:47 +0000 (13:36 -0700)]
osdc/Objecter: make wait_for_osd_map() locking safe

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoclient: use Objecter::{get,put}_osdmap_read() interface
Sage Weil [Sun, 20 Jul 2014 20:23:46 +0000 (13:23 -0700)]
client: use Objecter::{get,put}_osdmap_read() interface

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agolibrados: use {get,put}_osdmap_read() accessors
Sage Weil [Sun, 20 Jul 2014 18:08:36 +0000 (11:08 -0700)]
librados: use {get,put}_osdmap_read() accessors

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd/OSDMap: return const string from get_pool_name
Sage Weil [Sun, 20 Jul 2014 17:52:51 +0000 (10:52 -0700)]
osd/OSDMap: return const string from get_pool_name

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agolibrados: drop osdmap pool name cache
Sage Weil [Sun, 20 Jul 2014 17:36:44 +0000 (10:36 -0700)]
librados: drop osdmap pool name cache

We now have a rwlock for Objecter; no more need for a separate cache here.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd/OSDMap: make lookup_pg_pool_name const
Sage Weil [Sun, 20 Jul 2014 17:35:38 +0000 (10:35 -0700)]
osd/OSDMap: make lookup_pg_pool_name const

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: add name-base pool_delete
Sage Weil [Sun, 20 Jul 2014 17:27:05 +0000 (10:27 -0700)]
osdc/Objecter: add name-base pool_delete

Avoid a lookup then delete race.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: protect pool ops with rwlock
Sage Weil [Sun, 20 Jul 2014 17:22:56 +0000 (10:22 -0700)]
osdc/Objecter: protect pool ops with rwlock

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: add OSDMap accessors that are lock-safe
Sage Weil [Sun, 20 Jul 2014 16:48:15 +0000 (09:48 -0700)]
osdc/Objecter: add OSDMap accessors that are lock-safe

Everybody needs to use these to inspect the OSDMap.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agolibrados: let Objecter dispatch its own messages
Sage Weil [Sun, 20 Jul 2014 15:51:25 +0000 (08:51 -0700)]
librados: let Objecter dispatch its own messages

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: let Objecter dispatch directly
Sage Weil [Sun, 20 Jul 2014 15:47:54 +0000 (08:47 -0700)]
osd: let Objecter dispatch directly

No need for our ObjecterDispatcher wrapper, now!

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: wire up native Dispatcher fast dispatch
Sage Weil [Sun, 20 Jul 2014 16:16:18 +0000 (09:16 -0700)]
osdc/Objecter: wire up native Dispatcher fast dispatch

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosdc/Objecter: make Objecter a Dispatcher
Sage Weil [Sun, 20 Jul 2014 16:17:44 +0000 (09:17 -0700)]
osdc/Objecter: make Objecter a Dispatcher

Note that it's not actually doing it yet, though!

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomds: add finisher
Sage Weil [Sun, 20 Jul 2014 15:22:22 +0000 (08:22 -0700)]
mds: add finisher

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoobjecter: take write lock in ms_handle_reset()
Yehuda Sadeh [Thu, 17 Jul 2014 22:57:53 +0000 (15:57 -0700)]
objecter: take write lock in ms_handle_reset()

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agorwlock: assert on unlock if not locked
Yehuda Sadeh [Tue, 15 Jul 2014 22:51:21 +0000 (15:51 -0700)]
rwlock: assert on unlock if not locked

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoobjecter: fix locking
Yehuda Sadeh [Thu, 5 Jun 2014 19:21:53 +0000 (12:21 -0700)]
objecter: fix locking

ms_handle_reset() takes the session lock, needed to be able to call
_kick_requetss() with it held.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoobjecter: split objecter initialization
Yehuda Sadeh [Wed, 4 Jun 2014 18:46:50 +0000 (11:46 -0700)]
objecter: split objecter initialization

Separate objecter initialization to non cluster related work (e.g.,
internal data structures, other registrations), and to operations that
can initiate cluster interaction. This is so that we don't hit a rare
race where we can get called indirectly from one of the dispatcher callbacks
e.g., into handle_osd_map() when not yet being initialized.
This requires that objecter->init() should be called before
messenger->add_dispatcher_head(), and objecter->start() after it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoobjecter: Objecter::Op is refcounted
Yehuda Sadeh [Fri, 30 May 2014 16:46:03 +0000 (09:46 -0700)]
objecter: Objecter::Op is refcounted

Cancellation of lingerin ops collided with ops that we sent osdmap on,
needed to add a refcount for correct object delete.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoobjecter: don't serialize responses if there's no object name
Yehuda Sadeh [Wed, 28 May 2014 19:12:31 +0000 (12:12 -0700)]
objecter: don't serialize responses if there's no object name

This implicitly fixes an issue with the list_objects() being reentrant,
and triggers a lock dependency issue. The better solution would be to
have the callback context specify whether it's reentrant or not, but
will require a much bigger change.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoobjecter: shard completion_lock
Yehuda Sadeh [Mon, 12 May 2014 23:58:31 +0000 (16:58 -0700)]
objecter: shard completion_lock

Object ops responses are sharded, lock hashed by object name. This
guarantees ordering on the same object. Cross object order is not
guaranteed anymore.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoobjecter: a major refactoring
Yehuda Sadeh [Wed, 4 Jun 2014 21:55:13 +0000 (14:55 -0700)]
objecter: a major refactoring

Fixes: #7619
Removed the client_lock (that used to pass in as a param) and replaced
it with a read-write lock (completely controlled by the objecter). Also
added a per-session read-write lock. Adapt code to use the new locking
scheme, removed locking where not needed. Replaced various counters to
atomics instead of grabbing the lock for updates. Moved ops to live
under the session.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
10 years agotimer: fix RWTimer shutdown
Yehuda Sadeh [Wed, 28 May 2014 00:09:50 +0000 (17:09 -0700)]
timer: fix RWTimer shutdown

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agolibrados: cancel operation
Yehuda Sadeh [Wed, 14 May 2014 19:25:40 +0000 (12:25 -0700)]
librados: cancel operation

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agotest_mon_workloadgen: fix for new objecter interface
Yehuda Sadeh [Tue, 22 Apr 2014 04:56:33 +0000 (21:56 -0700)]
test_mon_workloadgen: fix for new objecter interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agorgw: abort early from logging function
Yehuda Sadeh [Fri, 7 Mar 2014 20:43:43 +0000 (12:43 -0800)]
rgw: abort early from logging function

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoosd: adapt to new Objecter interface
Yehuda Sadeh [Sat, 3 May 2014 15:41:05 +0000 (08:41 -0700)]
osd: adapt to new Objecter interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agolibrados: remove warning
Yehuda Sadeh [Mon, 31 Mar 2014 23:06:20 +0000 (16:06 -0700)]
librados: remove warning

Seems that the current locking scheme is ok. Objecter handles its
locking internally, librados needs to hold its lock.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agolibrados: push snap related functions down to objecter
Yehuda Sadeh [Sat, 3 May 2014 15:39:53 +0000 (08:39 -0700)]
librados: push snap related functions down to objecter

Need to take appropriate lock.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agolibrados: call objecter->handle_osd_map() under lock
Yehuda Sadeh [Fri, 28 Mar 2014 00:46:08 +0000 (17:46 -0700)]
librados: call objecter->handle_osd_map() under lock

The lock is not shared with the objecter anymore so we need to call
it under this lock, otherwise we're going to race with
wait_for_osdmap().

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agolibrados: adapt to new objecter interface
Yehuda Sadeh [Fri, 7 Mar 2014 23:35:40 +0000 (15:35 -0800)]
librados: adapt to new objecter interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agolibrados: don't hold client lock in certain operations
Yehuda Sadeh [Thu, 6 Mar 2014 21:07:20 +0000 (13:07 -0800)]
librados: don't hold client lock in certain operations

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agolibrados: don't hold lock in dispatch()
Yehuda Sadeh [Thu, 6 Mar 2014 19:24:18 +0000 (11:24 -0800)]
librados: don't hold lock in dispatch()

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agomds: adapt to new objecter interface
Yehuda Sadeh [Fri, 7 Mar 2014 23:35:55 +0000 (15:35 -0800)]
mds: adapt to new objecter interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoclient: adapt to new objecter interface
Yehuda Sadeh [Fri, 7 Mar 2014 23:35:15 +0000 (15:35 -0800)]
client: adapt to new objecter interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agotime: create RWTimer
Yehuda Sadeh [Mon, 17 Mar 2014 19:58:02 +0000 (12:58 -0700)]
time: create RWTimer

a timer implementation that uses RWLock

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agocommon/RWLock: add lock context
Yehuda Sadeh [Sat, 3 May 2014 15:33:33 +0000 (08:33 -0700)]
common/RWLock: add lock context

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agocommon/RWLock: add explicit unlock() to *Lockers
Yehuda Sadeh [Sat, 3 May 2014 15:33:22 +0000 (08:33 -0700)]
common/RWLock: add explicit unlock() to *Lockers

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agocommon/RWLock: add get()
Yehuda Sadeh [Sat, 3 May 2014 15:32:59 +0000 (08:32 -0700)]
common/RWLock: add get()

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agocommon/RWLock: check return values
Yehuda Sadeh [Sat, 3 May 2014 15:32:40 +0000 (08:32 -0700)]
common/RWLock: check return values

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agocommon/RWLock: track read/write locks via atomics for assertion checks
Yehuda Sadeh [Sat, 3 May 2014 15:32:19 +0000 (08:32 -0700)]
common/RWLock: track read/write locks via atomics for assertion checks

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
10 years agoMerge pull request #2138 from xiaoxichen/fix_crush_ruleset
Loic Dachary [Sun, 24 Aug 2014 22:50:23 +0000 (00:50 +0200)]
Merge pull request #2138 from xiaoxichen/fix_crush_ruleset

mon/OSDMonitor : Use user provided ruleset for replicated pool

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge branch 'wip-weak-refs'
Sage Weil [Fri, 22 Aug 2014 18:10:18 +0000 (11:10 -0700)]
Merge branch 'wip-weak-refs'

10 years agovstart.sh: debug rgw = 20 on -d
Sage Weil [Fri, 22 Aug 2014 18:08:34 +0000 (11:08 -0700)]
vstart.sh: debug rgw = 20 on -d

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2292 from lpabon/rgw-doc
Sage Weil [Fri, 22 Aug 2014 18:08:08 +0000 (11:08 -0700)]
Merge pull request #2292 from lpabon/rgw-doc

vstart.sh to enable support for simple Rados

Tested-by: GWabhishek.lekshmanan@gmail.com
10 years agocommon/shared_cache: dump weak refs on shutdown 2308/head
Sage Weil [Fri, 22 Aug 2014 16:17:06 +0000 (09:17 -0700)]
common/shared_cache: dump weak refs on shutdown

Before asserting, dump what the refs are along with the counts.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2304 from majianpeng/fix1
Sage Weil [Fri, 22 Aug 2014 16:13:21 +0000 (09:13 -0700)]
Merge pull request #2304 from majianpeng/fix1

small bug fix for journal

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agocommon/shared_cache: take a cct
Sage Weil [Fri, 22 Aug 2014 16:04:37 +0000 (09:04 -0700)]
common/shared_cache: take a cct

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2291 from ceph/wip-fingerprint
Sage Weil [Fri, 22 Aug 2014 15:46:54 +0000 (08:46 -0700)]
Merge pull request #2291 from ceph/wip-fingerprint

mon: add a unique clsuter fingerprint

Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
10 years agoMerge pull request #2307 from dmsimard/crushdoc
Loic Dachary [Fri, 22 Aug 2014 15:17:17 +0000 (17:17 +0200)]
Merge pull request #2307 from dmsimard/crushdoc

Doc: Add config option to turn off crush update

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2288 from xiaoxichen/fix_add_simple_ruleset
Loic Dachary [Fri, 22 Aug 2014 15:00:54 +0000 (17:00 +0200)]
Merge pull request #2288 from xiaoxichen/fix_add_simple_ruleset

CrushWrapper: pick a ruleset same as rule_id

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoDoc: Add config option to turn off crush update 2307/head
David Moreau Simard [Fri, 22 Aug 2014 14:55:55 +0000 (10:55 -0400)]
Doc: Add config option to turn off crush update

Signed-off-by: David Moreau Simard <dmsimard@iweb.com>
10 years agoCrushWrapper: pick a ruleset same as rule_id 2288/head
Xiaoxi Chen [Wed, 20 Aug 2014 07:35:44 +0000 (15:35 +0800)]
CrushWrapper: pick a ruleset same as rule_id

Originally in the add_simple_ruleset funtion, the ruleset_id
is not reused but rule_id is reused. So after some add/remove
against rules, the newly created rule likely to have
ruleset!=rule_id.

We dont want this happen because we are trying to hold the constraint
that ruleset == rule_id.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoMerge pull request #2273 from dachary/wip-mailmap
Loic Dachary [Fri, 22 Aug 2014 01:05:48 +0000 (03:05 +0200)]
Merge pull request #2273 from dachary/wip-mailmap

mailmap updates

10 years agoMerge remote-tracking branch 'gh/wip-filejournal'
Sage Weil [Fri, 22 Aug 2014 00:48:41 +0000 (17:48 -0700)]
Merge remote-tracking branch 'gh/wip-filejournal'

Reviewed-by: Sage Weil <sage@redhat.com>
Tested-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
10 years agoMerge remote-tracking branch 'gh/wip-lttng'
Sage Weil [Thu, 21 Aug 2014 22:06:11 +0000 (15:06 -0700)]
Merge remote-tracking branch 'gh/wip-lttng'

10 years agoRevert "Merge pull request #2253 from adamcrume/wip-lttng"
Sage Weil [Thu, 21 Aug 2014 22:05:40 +0000 (15:05 -0700)]
Revert "Merge pull request #2253 from adamcrume/wip-lttng"

This reverts commit 5b9ade5058f72116eb3dc920f442361c2a33b46b, reversing
changes made to b0aa846b3f81225a779de00100e15334fb8156b3.

I merged the wrong version of wip-lttng.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2274 from ceph/wip-9144
David Zafman [Thu, 21 Aug 2014 20:43:50 +0000 (13:43 -0700)]
Merge pull request #2274 from ceph/wip-9144

filestore: fix force_sync race with mount + umount + mount

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #2253 from adamcrume/wip-lttng
Sage Weil [Thu, 21 Aug 2014 20:14:51 +0000 (13:14 -0700)]
Merge pull request #2253 from adamcrume/wip-lttng

RBD-replay

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agomon: generate cluster_fingerprint if null 2291/head
Sage Weil [Thu, 21 Aug 2014 18:14:39 +0000 (11:14 -0700)]
mon: generate cluster_fingerprint if null

This triggers after an upgrade of a legacy cluster that has no fingerprint.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agomon: add a cluster fingerprint
Sage Weil [Wed, 20 Aug 2014 15:59:46 +0000 (08:59 -0700)]
mon: add a cluster fingerprint

Generate it on cluster creations with the initial monmap.  Include it in
the report.  Provide no way for this uuid to be fed in to the cluster
(intentionally or not) so that it can be assumed to be a truly unique
identifier for the cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agorbd_replay: Add unit test for batch_unreachable_from
Adam Crume [Tue, 19 Aug 2014 23:04:40 +0000 (16:04 -0700)]
rbd_replay: Add unit test for batch_unreachable_from

This requires a fair amount of code reorganization, since the types in
the function signature were previously not in a header file.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add unit test for Ser
Adam Crume [Tue, 19 Aug 2014 20:45:09 +0000 (13:45 -0700)]
rbd-replay: Add unit test for Ser

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Split --with-lttng and --with-babeltrace options
Adam Crume [Tue, 19 Aug 2014 18:16:50 +0000 (11:16 -0700)]
lttng: Split --with-lttng and --with-babeltrace options

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Remove tracing-specfic local variables when lttng disabled
Adam Crume [Mon, 18 Aug 2014 20:14:02 +0000 (13:14 -0700)]
lttng: Remove tracing-specfic local variables when lttng disabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add informational messages to configure.ac
Adam Crume [Mon, 18 Aug 2014 17:58:04 +0000 (10:58 -0700)]
lttng: Add informational messages to configure.ac

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Only install rbd-replay-prep when enabled
Adam Crume [Mon, 18 Aug 2014 16:27:02 +0000 (09:27 -0700)]
lttng: Only install rbd-replay-prep when enabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Check for babeltrace when autoconfiguring lttng
Adam Crume [Fri, 15 Aug 2014 23:25:55 +0000 (16:25 -0700)]
lttng: Check for babeltrace when autoconfiguring lttng

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Check that the main babeltrace header is present
Adam Crume [Fri, 15 Aug 2014 23:25:36 +0000 (16:25 -0700)]
lttng: Check that the main babeltrace header is present

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Test for sane lttng-gen-tp
Adam Crume [Fri, 15 Aug 2014 22:47:18 +0000 (15:47 -0700)]
lttng: Test for sane lttng-gen-tp

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Don't build trace libraries when lttng is disabled
Adam Crume [Fri, 15 Aug 2014 22:22:37 +0000 (15:22 -0700)]
lttng: Don't build trace libraries when lttng is disabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Fix build error on 32-bit systems
Adam Crume [Fri, 15 Aug 2014 19:49:53 +0000 (12:49 -0700)]
lttng: Fix build error on 32-bit systems

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Remove -lboost_regex from unit test
Adam Crume [Fri, 15 Aug 2014 19:43:08 +0000 (12:43 -0700)]
lttng: Remove -lboost_regex from unit test

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Don't build trace headers when lttng is disabled
Adam Crume [Fri, 15 Aug 2014 19:42:18 +0000 (12:42 -0700)]
lttng: Don't build trace headers when lttng is disabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Update packaging
Adam Crume [Fri, 15 Aug 2014 18:45:26 +0000 (11:45 -0700)]
lttng: Update packaging

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Only require lttng for Fedora >= 20 and RHEL == 6 for RPM distros
Adam Crume [Fri, 15 Aug 2014 17:27:05 +0000 (10:27 -0700)]
lttng: Only require lttng for Fedora >= 20 and RHEL == 6 for RPM distros

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add distro packaging
Adam Crume [Fri, 15 Aug 2014 04:33:43 +0000 (21:33 -0700)]
lttng: Add distro packaging

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Fix "make distcheck"
Adam Crume [Fri, 15 Aug 2014 01:25:20 +0000 (18:25 -0700)]
lttng: Fix "make distcheck"

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Support --with-lttng=check
Adam Crume [Wed, 13 Aug 2014 22:22:42 +0000 (15:22 -0700)]
lttng: Support --with-lttng=check

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Remove tracing from libcommon
Adam Crume [Wed, 13 Aug 2014 18:42:00 +0000 (11:42 -0700)]
lttng: Remove tracing from libcommon

This is a short-term fix for issues caused by tracepoints in libcommon.
Code crashes at runtime if the same tracepoints are linked into the
program multiple times.  This happens with libcommon because it is
statically linked into dynamic libraries such as librados, then
statically linked into executables because symbols from libcommon are
not exposed in librados.  Therefore, any programs that use librados and
libcommon would crash because of duplicate tracepoints.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO
Adam Crume [Wed, 13 Aug 2014 00:42:31 +0000 (17:42 -0700)]
rbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Remove extent tracepoints and inline extents
Adam Crume [Tue, 12 Aug 2014 23:10:53 +0000 (16:10 -0700)]
rbd-replay: Remove extent tracepoints and inline extents

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Move tracepoints from internal.cc to librbd.cc
Adam Crume [Tue, 12 Aug 2014 22:49:53 +0000 (15:49 -0700)]
rbd-replay: Move tracepoints from internal.cc to librbd.cc

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add man page and package binaries for rbd-replay-prep
Adam Crume [Tue, 12 Aug 2014 03:52:45 +0000 (20:52 -0700)]
rbd-replay: Add man page and package binaries for rbd-replay-prep

Signed-off-by: Adam Crume <adamcrume@gmail.com>