]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoos/bluestore/BlueStore: ASAP wake up _kv_finalize_thread. 18203/head
Jianpeng Ma [Mon, 9 Oct 2017 14:38:33 +0000 (22:38 +0800)]
os/bluestore/BlueStore: ASAP wake up _kv_finalize_thread.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoMerge pull request #18157 from batrick/ptl-tool-branch-checkout
Jos Collin [Mon, 9 Oct 2017 03:27:27 +0000 (03:27 +0000)]
Merge pull request #18157 from batrick/ptl-tool-branch-checkout

ptl-tool: checkout branch after creation

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17708 from liewegas/wip-pg
Sage Weil [Mon, 9 Oct 2017 02:47:49 +0000 (21:47 -0500)]
Merge pull request #17708 from liewegas/wip-pg

osd: initial minimal efforts to clean up PG interface

7 years agoMerge pull request #18125 from cernceph/dvanders_conf
Sage Weil [Mon, 9 Oct 2017 02:47:26 +0000 (21:47 -0500)]
Merge pull request #18125 from cernceph/dvanders_conf

mon: mark mon_allow_pool_delete as observed

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18144 from hjwsm1989/wip-21425-part2
Sage Weil [Mon, 9 Oct 2017 02:47:02 +0000 (21:47 -0500)]
Merge pull request #18144 from hjwsm1989/wip-21425-part2

qa/suites/rest/basic/tasks/rest_test: whiltelist OSD_DOWN

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #18159 from liewegas/wip-21712-b
Sage Weil [Mon, 9 Oct 2017 02:46:27 +0000 (21:46 -0500)]
Merge pull request #18159 from liewegas/wip-21712-b

os: fix 0-length zero semantics, add tests

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: 0-length zero should not change object size 18159/head
Sage Weil [Fri, 6 Oct 2017 20:29:32 +0000 (15:29 -0500)]
os/bluestore: 0-length zero should not change object size

Fixes: http://tracker.ceph.com/issues/21712
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/filestore: make 0-length zero avoid touching object length
Sage Weil [Fri, 6 Oct 2017 20:29:15 +0000 (15:29 -0500)]
os/filestore: make 0-length zero avoid touching object length

Fixes: http://tracker.ceph.com/issues/21712
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/ObjectStore: 0-length zero does not change length of object
Sage Weil [Fri, 6 Oct 2017 20:28:49 +0000 (15:28 -0500)]
os/ObjectStore: 0-length zero does not change length of object

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18141 from adamemerson/wip-log-time
Kefu Chai [Mon, 9 Oct 2017 01:35:46 +0000 (09:35 +0800)]
Merge pull request #18141 from adamemerson/wip-log-time

log: Use the coarse real time clock in log timestamps

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17976 from adamemerson/wip-warning-sign
Kefu Chai [Mon, 9 Oct 2017 01:34:50 +0000 (09:34 +0800)]
Merge pull request #17976 from adamemerson/wip-warning-sign

mgr,osd,kv: Fix various warnings for Clang and GCC7

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agolog: Mark timestamps for coarseness and print appropriately 18141/head
Adam C. Emerson [Fri, 6 Oct 2017 21:15:43 +0000 (17:15 -0400)]
log: Mark timestamps for coarseness and print appropriately

Have each timestamp know whether it's coarse or fine. Print six figures
for fine stamps and three for coarse.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agolog: Add log_coarse_timestamps option
Adam C. Emerson [Thu, 5 Oct 2017 22:34:06 +0000 (18:34 -0400)]
log: Add log_coarse_timestamps option

And set up an observer in CephContext to coarsen/refine time stamps as
requested.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoconfig: Add templated _get_val for use in observers
Adam C. Emerson [Thu, 5 Oct 2017 22:32:32 +0000 (18:32 -0400)]
config: Add templated _get_val for use in observers

When notified by a config observer, the config lock is already held,
create a _get_val template to manipulate newstyle options when
notified.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agolog: Use log_clock, defaulting to coarse time
Adam C. Emerson [Thu, 5 Oct 2017 22:30:56 +0000 (18:30 -0400)]
log: Use log_clock, defaulting to coarse time

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agolog: Add optional msg parameter to create_entry and test with it
Adam C. Emerson [Thu, 5 Oct 2017 22:27:37 +0000 (18:27 -0400)]
log: Add optional msg parameter to create_entry and test with it

The tests should, really, get their time from the same source as the
log, and also probably use the same interface to creating entries that
other people do. So add an optional message argument and have the
tests use that rather than using the new operator directly.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agolog: Create log_clock to replace use of utime_t
Adam C. Emerson [Thu, 5 Oct 2017 22:17:16 +0000 (18:17 -0400)]
log: Create log_clock to replace use of utime_t

We create a new time type to support using coarse timestamps (for
performance) by default while still allowing the user to switch to
fine timestamps.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoosd/PGLog: drop old compat coll/oid args to read_log_and_missing 17708/head
Sage Weil [Fri, 6 Oct 2017 19:34:41 +0000 (14:34 -0500)]
osd/PGLog: drop old compat coll/oid args to read_log_and_missing

The oldest version we care about is 10, and these were for <8.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18122 from liewegas/wip-monthrash-peering
Sage Weil [Fri, 6 Oct 2017 20:32:45 +0000 (15:32 -0500)]
Merge pull request #18122 from liewegas/wip-monthrash-peering

qa/suites/rados/monthrash: tolerate PG_AVAILABILITY during mon thrashing

7 years agoMerge pull request #18047 from gregsfortytwo/wip-20416-bitwise-assert
Yuri Weinstein [Fri, 6 Oct 2017 19:48:35 +0000 (12:48 -0700)]
Merge pull request #18047 from gregsfortytwo/wip-20416-bitwise-assert

osd: make the PG's SORTBITWISE assert a more generous shutdown

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoceph-objectstore-tool: bring past_intervals up to date on import
Sage Weil [Fri, 6 Oct 2017 19:21:43 +0000 (14:21 -0500)]
ceph-objectstore-tool: bring past_intervals up to date on import

We can't blinding fast-forward the pg epoch to the latest map without
also updating the pg history and PastIntervals.  Do that at import time.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-objectstore-tool: hide DIAGNOSTIC stuff behind debug/verbose mode
Sage Weil [Fri, 6 Oct 2017 18:58:22 +0000 (13:58 -0500)]
ceph-objectstore-tool: hide DIAGNOSTIC stuff behind debug/verbose mode

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-objectstore-tool: drop unused biginfo_oid
Sage Weil [Fri, 6 Oct 2017 18:57:59 +0000 (13:57 -0500)]
ceph-objectstore-tool: drop unused biginfo_oid

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-objectstore-tool: refuse to import PG older that OSD's oldest_epoch
Sage Weil [Fri, 6 Oct 2017 18:43:57 +0000 (13:43 -0500)]
ceph-objectstore-tool: refuse to import PG older that OSD's oldest_epoch

We don't have a way to construct a valid PastIntervals history.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoptl-tool: checkout branch after creation 18157/head
Patrick Donnelly [Fri, 6 Oct 2017 18:52:04 +0000 (11:52 -0700)]
ptl-tool: checkout branch after creation

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoceph-objectstore-tool: remove rm-past-intervals op
Sage Weil [Thu, 5 Oct 2017 02:31:12 +0000 (21:31 -0500)]
ceph-objectstore-tool: remove rm-past-intervals op

The OSD doesn't rebuild this on demand anymore.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-objectstore-tool: do not clear same_interval_since and PastIntervals
Sage Weil [Tue, 3 Oct 2017 18:32:37 +0000 (13:32 -0500)]
ceph-objectstore-tool: do not clear same_interval_since and PastIntervals

We dropped the OSD recalculation code for this.  Import it.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-objectstore-tool: print pg_info_t to stdoutt
Sage Weil [Sun, 17 Sep 2017 23:27:44 +0000 (18:27 -0500)]
ceph-objectstore-tool: print pg_info_t to stdoutt

Helpful for debugging

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: print summary for forced backfill/recovery to debug
Sage Weil [Mon, 18 Sep 2017 21:53:31 +0000 (16:53 -0500)]
osd: print summary for forced backfill/recovery to debug

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: drop OSD friend, finally!
Sage Weil [Mon, 18 Sep 2017 19:53:47 +0000 (14:53 -0500)]
osd/PG: drop OSD friend, finally!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: drop redundant is_active() check before scrub_sched()
Sage Weil [Mon, 18 Sep 2017 19:51:36 +0000 (14:51 -0500)]
osd: drop redundant is_active() check before scrub_sched()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make update_snap_mapper_bits public
Sage Weil [Mon, 18 Sep 2017 19:14:11 +0000 (14:14 -0500)]
osd/PG: make update_snap_mapper_bits public

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make on_removal() public
Sage Weil [Mon, 18 Sep 2017 19:12:08 +0000 (14:12 -0500)]
osd/PG: make on_removal() public

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make get_primary() public
Sage Weil [Mon, 18 Sep 2017 19:11:49 +0000 (14:11 -0500)]
osd/PG: make get_primary() public

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add get_pool()
Sage Weil [Mon, 18 Sep 2017 19:05:00 +0000 (14:05 -0500)]
osd/PG: add get_pool()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: use pg_id.pool() for pg pool id
Sage Weil [Mon, 18 Sep 2017 19:04:44 +0000 (14:04 -0500)]
osd: use pg_id.pool() for pg pool id

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make sched_scrub() public
Sage Weil [Mon, 18 Sep 2017 19:04:14 +0000 (14:04 -0500)]
osd/PG: make sched_scrub() public

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: get_must_scrub()
Sage Weil [Mon, 18 Sep 2017 19:01:00 +0000 (14:01 -0500)]
osd/PG: get_must_scrub()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PGBackend: remove scrub_supported()
Sage Weil [Mon, 18 Sep 2017 19:00:37 +0000 (14:00 -0500)]
osd/PGBackend: remove scrub_supported()

Everybody supports scrub.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: change 'debug dump_missing'
Sage Weil [Mon, 18 Sep 2017 18:59:33 +0000 (13:59 -0500)]
osd/PG: change 'debug dump_missing'

- json
- move into PG class

No users in the qa suite.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move bits of delete_dir (pg removal) into PG
Sage Weil [Mon, 18 Sep 2017 02:55:27 +0000 (21:55 -0500)]
osd/PG: move bits of delete_dir (pg removal) into PG

We don't want to expose things like SnapMapper, OSDriver.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: define public interface for heartbeat peers
Sage Weil [Mon, 18 Sep 2017 02:32:44 +0000 (21:32 -0500)]
osd/PG: define public interface for heartbeat peers

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: use accessors for pg resurrection
Sage Weil [Mon, 18 Sep 2017 02:17:36 +0000 (21:17 -0500)]
osd: use accessors for pg resurrection

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: simplify start_recovery_ops return value meaning
Sage Weil [Sun, 17 Sep 2017 23:32:45 +0000 (18:32 -0500)]
osd/PG: simplify start_recovery_ops return value meaning

Instead of complex check in caller, return simple bool indicating whether
find_unfound() should be called with a rctx.

There is one remaining condition that can probably be simplified:

  if (!recovering.empty() ||
      work_in_progress || recovery_ops_active > 0 || deferred_backfill)
    return !work_in_progress && have_unfound();

but we will leave it for now.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: simplify unfound recovery case; rename method
Sage Weil [Sun, 17 Sep 2017 23:29:38 +0000 (18:29 -0500)]
osd/PG: simplify unfound recovery case; rename method

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: drop unneeded write_if_dirty
Sage Weil [Sun, 17 Sep 2017 23:27:44 +0000 (18:27 -0500)]
osd/PG: drop unneeded write_if_dirty

Nothing in start_recovery_ops or stuck_on_unfound dirties state.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move a few assertions, flag change into start_recovery_ops()
Sage Weil [Sun, 17 Sep 2017 23:11:35 +0000 (18:11 -0500)]
osd/PG: move a few assertions, flag change into start_recovery_ops()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move some more split machinery into PG
Sage Weil [Sun, 17 Sep 2017 22:55:29 +0000 (17:55 -0500)]
osd/PG: move some more split machinery into PG

and move other split pieces into the public interface.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move write_if_dirty inside handle_{loaded,create}
Sage Weil [Sun, 17 Sep 2017 22:37:36 +0000 (17:37 -0500)]
osd/PG: move write_if_dirty inside handle_{loaded,create}

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: get_need_up_thru(), get_same_interval_since()
Sage Weil [Sun, 17 Sep 2017 22:35:31 +0000 (17:35 -0500)]
osd/PG: get_need_up_thru(), get_same_interval_since()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: bit less verbose while loading pgs
Sage Weil [Sun, 17 Sep 2017 22:30:32 +0000 (17:30 -0500)]
osd: bit less verbose while loading pgs

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move more recovery logic into PG
Sage Weil [Sun, 17 Sep 2017 22:29:16 +0000 (17:29 -0500)]
osd/PG: move more recovery logic into PG

I suspect we eventually want to move the create_context and
dispatch_context into OSDService (if it isn't there already) and move
even more of this logic into PG.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move some osd logic into handle_pg_trim
Sage Weil [Sun, 17 Sep 2017 22:10:53 +0000 (17:10 -0500)]
osd/PG: move some osd logic into handle_pg_trim

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: hide peering_queue from OSD
Sage Weil [Sun, 17 Sep 2017 22:02:05 +0000 (17:02 -0500)]
osd/PG: hide peering_queue from OSD

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: remove build_past_intervals_parallel
Sage Weil [Sat, 16 Sep 2017 18:08:07 +0000 (14:08 -0400)]
osd: remove build_past_intervals_parallel

This was added in the dumpling era to handle the case where we have lots
of PGs with stale or missing past_intervals.  These days, we update
PastIntervals as we inject new makes (via advance_map), when we
learn about new PGs via notify with get the PastIntervals at the same time,
and during PGCreate handling we have a separate path in
build_initial_pg_history.  This code is obsolete.

It also reaches deep into the PG class where it shouldn't!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: use PG::is_deleting()
Sage Weil [Sat, 16 Sep 2017 03:53:57 +0000 (23:53 -0400)]
osd: use PG::is_deleting()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move load_pgs cruft into read_state()
Sage Weil [Sat, 16 Sep 2017 03:52:33 +0000 (23:52 -0400)]
osd/PG: move load_pgs cruft into read_state()

This only happens during initial load; move it there.

Also, since update_store_with_options

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make read_state, peek_map_epoch public
Sage Weil [Sat, 16 Sep 2017 03:44:53 +0000 (23:44 -0400)]
osd/PG: make read_state, peek_map_epoch public

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: simplify/streamline upgrade process
Sage Weil [Sat, 16 Sep 2017 03:31:54 +0000 (23:31 -0400)]
osd/PG: simplify/streamline upgrade process

There's no reason for this to be exposed to the OSD.  Just do it directly
in read_state().

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: drop bufferlist passed from peek_map_epoch to read_state/read_info
Sage Weil [Sat, 16 Sep 2017 03:26:17 +0000 (23:26 -0400)]
osd/PG: drop bufferlist passed from peek_map_epoch to read_state/read_info

This is no longer used or needed.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make init() public
Sage Weil [Sat, 16 Sep 2017 03:15:19 +0000 (23:15 -0400)]
osd/PG: make init() public

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: on_shutdown -> shutdown in public interface
Sage Weil [Sat, 16 Sep 2017 03:11:34 +0000 (23:11 -0400)]
osd/PG: on_shutdown -> shutdown in public interface

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add get_num_ref()
Sage Weil [Sat, 16 Sep 2017 03:08:33 +0000 (23:08 -0400)]
osd/PG: add get_num_ref()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add get_pg_stats() to public interface
Sage Weil [Sat, 16 Sep 2017 03:07:38 +0000 (23:07 -0400)]
osd/PG: add get_pg_stats() to public interface

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add dump_pgstate_history() to public interface
Sage Weil [Sat, 16 Sep 2017 02:58:15 +0000 (22:58 -0400)]
osd/PG: add dump_pgstate_history() to public interface

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make get_watchers public, hide locking
Sage Weil [Sat, 16 Sep 2017 02:53:20 +0000 (22:53 -0400)]
osd/PG: make get_watchers public, hide locking

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: drop legacy infos object cleanup
Sage Weil [Fri, 15 Sep 2017 22:43:29 +0000 (18:43 -0400)]
osd: drop legacy infos object cleanup

This won't be there post-luminous

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: make osr public
Sage Weil [Fri, 15 Sep 2017 22:41:35 +0000 (18:41 -0400)]
osd/PG: make osr public

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: use is_deleting()
Sage Weil [Fri, 15 Sep 2017 22:41:09 +0000 (18:41 -0400)]
osd: use is_deleting()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: use pg->pg_id const member, not get_pgid()
Sage Weil [Fri, 15 Sep 2017 22:41:03 +0000 (18:41 -0400)]
osd: use pg->pg_id const member, not get_pgid()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: reorder some members
Sage Weil [Fri, 15 Sep 2017 22:35:40 +0000 (18:35 -0400)]
osd/PG: reorder some members

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: protect get_last_peering_reset
Sage Weil [Fri, 15 Sep 2017 22:22:01 +0000 (18:22 -0400)]
osd/PG: protect get_last_peering_reset

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: protect get_role()
Sage Weil [Fri, 15 Sep 2017 22:13:19 +0000 (18:13 -0400)]
osd/PG: protect get_role()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: cleanup and move ref counting public bits
Sage Weil [Fri, 15 Sep 2017 15:37:29 +0000 (11:37 -0400)]
osd/PG: cleanup and move ref counting public bits

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: protect pg state accessors
Sage Weil [Fri, 15 Sep 2017 15:26:16 +0000 (11:26 -0400)]
osd/PG: protect pg state accessors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add is_forced_recovery_or_backfill()
Sage Weil [Fri, 15 Sep 2017 15:24:45 +0000 (11:24 -0400)]
osd/PG: add is_forced_recovery_or_backfill()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/ECBackend: use Listener instead of PG interface to check undersized
Sage Weil [Fri, 15 Sep 2017 15:22:53 +0000 (11:22 -0400)]
osd/ECBackend: use Listener instead of PG interface to check undersized

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: collection more of public at top of class
Sage Weil [Fri, 15 Sep 2017 15:17:48 +0000 (11:17 -0400)]
osd/PG: collection more of public at top of class

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: expose static methods for ceph-objectstore-tool
Sage Weil [Thu, 14 Sep 2017 13:44:06 +0000 (09:44 -0400)]
osd/PG: expose static methods for ceph-objectstore-tool

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move C_PG_FinishRecovery into header
Sage Weil [Wed, 13 Sep 2017 22:14:59 +0000 (18:14 -0400)]
osd/PG: move C_PG_FinishRecovery into header

Less code than delcaring it in 2 places (by making it a friend).

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move C_PG_ActivateCommitted into header
Sage Weil [Wed, 13 Sep 2017 22:12:33 +0000 (18:12 -0400)]
osd/PG: move C_PG_ActivateCommitted into header

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: clean up set_force_{recovery,backfill} interface
Sage Weil [Wed, 13 Sep 2017 22:09:35 +0000 (18:09 -0400)]
osd/PG: clean up set_force_{recovery,backfill} interface

- update state under pg lock
- clean up PG interface
- log only when we adjust the state

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: start grouping public interface at top of class
Sage Weil [Wed, 13 Sep 2017 21:55:40 +0000 (17:55 -0400)]
osd/PG: start grouping public interface at top of class

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: is_deleting()
Sage Weil [Wed, 13 Sep 2017 21:43:39 +0000 (17:43 -0400)]
osd/PG: is_deleting()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: clean up intrusive_ptr helpers
Sage Weil [Wed, 13 Sep 2017 21:30:06 +0000 (17:30 -0400)]
osd/PG: clean up intrusive_ptr helpers

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: protect everything that doesn't have to be public
Sage Weil [Wed, 13 Sep 2017 21:25:07 +0000 (17:25 -0400)]
osd/PG: protect everything that doesn't have to be public

This lets us see what the *actual* public interface is that we are using.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: get_acting()
Sage Weil [Wed, 13 Sep 2017 21:20:52 +0000 (17:20 -0400)]
osd/PG: get_acting()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add set_last_scrub_stamp
Sage Weil [Wed, 13 Sep 2017 21:16:06 +0000 (17:16 -0400)]
osd/PG: add set_last_scrub_stamp

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add get_history() accessor
Sage Weil [Wed, 13 Sep 2017 21:14:08 +0000 (17:14 -0400)]
osd/PG: add get_history() accessor

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: inline lock_suspend_timeout
Sage Weil [Wed, 13 Sep 2017 21:00:12 +0000 (17:00 -0400)]
osd/PG: inline lock_suspend_timeout

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: add get_last_user_version()
Sage Weil [Wed, 13 Sep 2017 20:57:00 +0000 (16:57 -0400)]
osd/PG: add get_last_user_version()

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: use PG::get_pgid() instead of info.pgid
Sage Weil [Wed, 13 Sep 2017 20:55:57 +0000 (16:55 -0400)]
osd: use PG::get_pgid() instead of info.pgid

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18049 from liewegas/wip-kv-iterator
Sage Weil [Fri, 6 Oct 2017 18:07:57 +0000 (13:07 -0500)]
Merge pull request #18049 from liewegas/wip-kv-iterator

kv/KeyValueDB: add column family

Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
7 years agoMerge pull request #18156 from theanalyst/doc-changelog-rename
Sage Weil [Fri, 6 Oct 2017 17:55:59 +0000 (12:55 -0500)]
Merge pull request #18156 from theanalyst/doc-changelog-rename

doc: rename changelog with a .txt extension

7 years agoMerge pull request #17442 from tchaikov/wip-test-throttle
Kefu Chai [Fri, 6 Oct 2017 17:52:10 +0000 (01:52 +0800)]
Merge pull request #17442 from tchaikov/wip-test-throttle

test/throttle: kill tests exercising dtor of Throttle classes

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agodoc: rename changelog with a .txt extension 18156/head
Abhishek Lekshmanan [Fri, 6 Oct 2017 16:40:18 +0000 (18:40 +0200)]
doc: rename changelog with a .txt extension

Since this is used to x-ref in the release notes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #18148 from theanalyst/doc-10.2.10-release-notes
Abhishek L [Fri, 6 Oct 2017 16:30:37 +0000 (18:30 +0200)]
Merge pull request #18148 from theanalyst/doc-10.2.10-release-notes

doc: release notes update for 10.2.10

Reviewed-By: Nathan Cutler <ncutler@suse.com>
Reviewed-By: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18155 from smithfarm/wip-doc-releases-tweak
Sage Weil [Fri, 6 Oct 2017 16:06:46 +0000 (11:06 -0500)]
Merge pull request #18155 from smithfarm/wip-doc-releases-tweak

doc: improve links in doc/releases.rst

7 years agodoc: improve links in doc/releases.rst 18155/head
Nathan Cutler [Fri, 6 Oct 2017 15:49:01 +0000 (17:49 +0200)]
doc: improve links in doc/releases.rst

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agodoc: update releases table with v10.2.10 Jewel 18148/head
Abhishek Lekshmanan [Fri, 6 Oct 2017 15:05:36 +0000 (17:05 +0200)]
doc: update releases table with v10.2.10 Jewel

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>