Commit Graph

59903 Commits

Author SHA1 Message Date
Yehuda Sadeh
8cb3a5d42f Merge pull request #11392 from Oloremo/keystone_docs
Update keystone doc about v3 options

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-11-11 15:40:47 -08:00
Sage Weil
d84bcb76d0 Merge pull request #11925 from ktdreyer/doc-infernalis-eol
doc: add infernalis EOL date
2016-11-11 16:57:36 -06:00
Ken Dreyer
9a9637d176 doc: add infernalis EOL date
Remove the estimated Infernalis EOL date, and add the actual EOL date.

As discussed on the ceph-devel mailing list, we decided to say that this
infernalis EOL date is the same date that we made the first Jewel
release available.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2016-11-11 15:45:19 -07:00
Dan Mick
9998ba2a7b Merge pull request #11924 from liewegas/wip-balloc
unittest_bit_alloc: fix type

Merging before make check because it clearly breaks the build and the build part is done
Reviewed-by: Dan Mick <dmick@redhat.com>
2016-11-11 13:54:06 -08:00
Sage Weil
05a7a83299 unittest_bitalloc: fix type
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 16:12:10 -05:00
Sage Weil
c67446d91c Merge pull request #11922 from liewegas/wip-mempool-bluestore
mempool: changes for bitmap allocator

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
2016-11-11 14:29:19 -06:00
Sage Weil
606253ac2c Merge pull request #11920 from ifed01/wip-bluestore-tmp
os/bluestore: remove build warning in a better way

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-11 14:28:50 -06:00
Ramesh Chander
aa2146de77 mempool changes for bitmap allocator
[with bstore_balloc -> bluestore_alloc rename by sage]

Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-11-11 15:08:52 -05:00
Sage Weil
0dc6e69ab3 Merge pull request #11839 from liewegas/wip-mempool-buffer
buffer: put buffers in buffer_{data,meta} mempools

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
2016-11-11 14:04:13 -06:00
Sage Weil
27a2d13c6a Merge pull request #11834 from liewegas/wip-bluestore-mempool
os/bluestore: move bluefs into its own mempool

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
2016-11-11 14:03:43 -06:00
Sage Weil
fc15c12850 buffer: put data and metadata in a mempool
Note that for raw_combined we leak some metadata into the data pool.

Also, we do not account for non-raw metadata or anything else in buffer.h,
as that would pollute the ABI and public interface.

Drop the namespace ceph in buffer.cc (which serves no real purpose) as it
confuses the MEMPOOL_DEFINE_* macros (they cannot be used inside a
namespace).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
dcc23765b4 mempool: add [de]allocate_aligned
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
f54e6bd78c osd: move pg logs into osd mempool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
665013cd96 osd/PG: move peering evt into pool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
88d59bff07 osd: move ReplicatedPG into mempool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
fbf5253e59 mempool: create an osd mempool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
12f6e8f18a mempool: attach mempool asok commands to all ccts
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
328487b6e1 mempool: move to libcommon
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
ae1564df93 include/mempool: align shard_t to cacheline
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
08222300c5 include/mempool: adjust factory name
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
bd601c648d mempool: drop unused factory type
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
38f61af44a include/mempool: fix allocate() debug_mode check
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
53fb099d1e Merge pull request #7784 from ceph/wip-da-SCA-20160219
Coverity and SCA fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-11 13:36:45 -06:00
Sage Weil
a1303ce419 Merge pull request #11830 from adamemerson/wip-crush-unlocked
crush: remove the crush_lock

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-11 13:35:05 -06:00
Sage Weil
26a3dae292 Merge pull request #11910 from xiexingguo/xxg-wip-bluestore-1111
os/bluestore: some more cleanups

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-11-11 12:28:24 -06:00
Igor Fedotov
86c360fc90 os/bluestore: remove build warning in a better way
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-11-11 20:22:18 +03:00
Sage Weil
80fcdf85ea Merge pull request #11915 from ifed01/wip-bluestore-fix-test
os/test/store_test: fix legacy bluestore cache settings application

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-11 09:34:56 -06:00
Sage Weil
758272bd60 Merge pull request #11905 from xiexingguo/xxg-wip-kill-boost-warn
os/bluestore: fix compiler warnings

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-11 09:30:54 -06:00
Sage Weil
abf5588e9e Merge pull request #11896 from ifed01/wip-bluestore-cleanup
os/bluestore: cleanup around Blob::ref_map

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-11 09:01:12 -06:00
John Spray
6b2dc4ac73 Merge pull request #11710 from ceph/wip-jlayton-fsync
Fix long stalls when calling ceph_fsync()

Reviewed-by: John Spray <john.spray@redhat.com>
2016-11-11 15:29:15 +01:00
Kefu Chai
36bf16d073 Merge pull request #11293 from liewegas/wip-mon-markout
mon: preserve osd weight when marking osd out, then in

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-11 22:00:39 +08:00
root
736c1edddf os/test/store_test: fix legacy bluestore cache settings application
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-11-11 13:46:37 +00:00
Igor Fedotov
0edfc9ebe4 os/bluestore: make Blob::ref_map private
Signed-off-by: Igor Fedotov <ifedotov@minratis.com>
2016-11-11 15:53:26 +03:00
Igor Fedotov
a729a01a4f os/bluestore: start using Blob::get_ref over the code
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-11-11 15:53:26 +03:00
Jeff Layton
a374166c68 client: rename flush_caps() with no arguments to flush_caps_sync()
Per Greg's recommendation, change the name of this function to better
indicate what it does now that we always request a journal flush on
the last cap flush.

Also, add a comment above the function to better explain why we do this.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-11-11 06:28:50 -05:00
Jeff Layton
ccdd778c88 client: request journal flush after flushing caps in syncfs
Ensure that we ask the MDS to flush the journal on the last cap flush
from sync_fs and umount codepaths.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-11-11 06:28:50 -05:00
Jeff Layton
cdd2220abb mds: only update change_attr and btime when client sets appropriate feature flags
The kernel client lags the userland code a bit, and feature support for
addr2 is not quite ready. Still, we want to allow the client to set the
new flags field in a cap request before then so it can get better fsync
performance.

When we go to update the cap fields, grab the features from the peer,
and verify that the appropriate flags are set before we apply updates
to the btime and change_attr.

Also, just have the function return early if dirty is 0, since it's
a no-op in that case, and turn the comment above the function into
an assertion.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-11-11 06:28:50 -05:00
Jeff Layton
826b30aa28 client: wire up the CHECK_CAPS_SYNCHRONOUS flag
Ensure that the client will request an immediate journal flush from the
MDS when we'll end up waiting on the flush response. This patch should
fix the fsync codepath, but we may need something similar for syncfs.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-11-11 06:28:50 -05:00
Jeff Layton
0df562a8e1 client: change no_delay flag to a flags field
In a later patch, we'll want to have the client set the sync flag in
the cap flush, to hint to the MDS that it should process it immediately.

We could add a second bool, but let's instead do what the kernel client
does which is to have a flags field. With that, the existing no_delay
bool becomes CHECK_CAPS_NODELAY.

We'll add other flags in subsequent patches.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-11-11 06:28:47 -05:00
Jeff Layton
93954d0e99 mds: do mds log flush if CLIENT_CAPS_SYNC is set
If the client has set the sync flag in a cap update, then it
is indicating that it's waiting on the reply. Ensure that we flush
the journal in that case.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-11-11 06:28:29 -05:00
John Spray
c88c395938 Merge pull request #11790 from jcsp/wip-mclientcaps
client: remove unneeded layout on MClientCaps

Reviewed-by: Jeff Layton <jlayton@redhat.com>
2016-11-11 12:10:49 +01:00
John Spray
d5bea25b50 Merge pull request #11789 from jcsp/wip-17798
mds: require MAY_SET_POOL to set pool_ns

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-11-11 12:10:21 +01:00
John Spray
36905d7caf Merge pull request #11783 from jcsp/wip-17796
mds: enable rmxattr on pool_namespace attrs 

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-11-11 12:09:57 +01:00
John Spray
babbfbc8e1 Merge pull request #11739 from SUSE/wip-17747
mds: remove "--journal-check" help text
2016-11-11 12:09:26 +01:00
John Spray
52efd27aec Merge pull request #11692 from stiopaa1/mds_flock_addConstToMemFun
mds/flock: add const to member functions
2016-11-11 12:07:46 +01:00
John Spray
ff9b388f15 Merge pull request #11545 from majianpeng/osdc-objectcache-fix-bug
osdc: After write try merge bh.

Reviewed-by: John Spray <john.spray@redhat.com>
2016-11-11 12:06:53 +01:00
Kefu Chai
b581df1778 Merge pull request #10853 from wido/docs-mon-pool-settings
doc: Add MON docs about pool flags and pool removal config settings

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-11 17:36:28 +08:00
Wido den Hollander
61bf31f847
doc: Add MON docs about pool flags and pool removal config settings
Signed-off-by: Wido den Hollander <wido@42on.com>
2016-11-11 10:00:27 +01:00
xie xingguo
5bfe679b67 os/bluestore: remove dead assert
This assert will never fire, hence it can be safely removed.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-11 13:53:31 +08:00
xie xingguo
b32cbcd78f os/bluestore: make Extent deleter as independent disposer
Duplicated definition of lambas of same function is not good.
Also switching ExtentMap::rm() to use the new disposer to
keep pace with others.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-11 13:53:16 +08:00