]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoos/bluestore: allow default to buffered write 11301/head
Sage Weil [Fri, 7 Oct 2016 20:07:53 +0000 (16:07 -0400)]
os/bluestore: allow default to buffered write

Add config option to buffered writes (in the absense of
a client WILLNEED hint).  Set the config option to false,
though, so that the default behavior is unchanged.

2Q should do a half-decent job of preventing this from
pushing actually-hot data from the cache when it's
enabled, but we'll need to do more testing first.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11329 from atheism/rgw-b64-remove-ostr
Sage Weil [Thu, 6 Oct 2016 17:23:38 +0000 (12:23 -0500)]
Merge pull request #11329 from atheism/rgw-b64-remove-ostr

rgw: remove unused variable "ostr" in rgw_b64.h and fix the comment

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11351 from ifed01/wip-bluestore-misc2
Sage Weil [Thu, 6 Oct 2016 17:22:27 +0000 (12:22 -0500)]
Merge pull request #11351 from ifed01/wip-bluestore-misc2

os/bluestore: Fix invalid compression statfs caused by clone op

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11350 from liewegas/wip-bluestore-compression
Sage Weil [Thu, 6 Oct 2016 16:35:37 +0000 (11:35 -0500)]
Merge pull request #11350 from liewegas/wip-bluestore-compression

os/bluestore: fix up compression tests and debug output

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: Fix invalid compression statfs caused by clone op 11351/head
Igor Fedotov [Thu, 6 Oct 2016 16:29:47 +0000 (16:29 +0000)]
os/bluestore: Fix invalid compression statfs caused by clone op

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11317 from liewegas/wip-bluestore-aios
Igor Fedotov [Thu, 6 Oct 2016 16:27:09 +0000 (19:27 +0300)]
Merge pull request #11317 from liewegas/wip-bluestore-aios

os/bluestore: fix has_aios

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoceph_test_objectstore: adjust SyntheticMatrixCsumVsCompression parameters 11350/head
Sage Weil [Thu, 6 Oct 2016 16:05:04 +0000 (12:05 -0400)]
ceph_test_objectstore: adjust SyntheticMatrixCsumVsCompression parameters

- larger writes
- test both codecs
- use smaller min_alloc_size so that it's easier to write compressed data
- don't bother with compression off; other matrices cover that.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: clean up compression debug output
Sage Weil [Thu, 6 Oct 2016 16:03:05 +0000 (12:03 -0400)]
os/bluestore: clean up compression debug output

The previous output was impossible to interpret properly.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph_test_objectstore: limit entropy in 'random' data so it can compress
Sage Weil [Thu, 6 Oct 2016 16:02:10 +0000 (12:02 -0400)]
ceph_test_objectstore: limit entropy in 'random' data so it can compress

Both zlib and snappy weren't able to do anything with the current data.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix build error
Sage Weil [Thu, 6 Oct 2016 15:17:01 +0000 (11:17 -0400)]
os/bluestore: fix build error

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11346 from ifed01/wip-bluestore-misc
Sage Weil [Thu, 6 Oct 2016 14:37:56 +0000 (09:37 -0500)]
Merge pull request #11346 from ifed01/wip-bluestore-misc

os/bluestore: misc cleanup and test fixes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11328 from liewegas/wip-bluestore-more-types
Sage Weil [Thu, 6 Oct 2016 14:33:59 +0000 (09:33 -0500)]
Merge pull request #11328 from liewegas/wip-bluestore-more-types

os/bluestore: pack a few more in-memory types

8 years agotest/store_test: BluestoreStatFSTest fixes for issues introduced with bluestore_compr... 11346/head
Igor Fedotov [Thu, 6 Oct 2016 14:17:40 +0000 (14:17 +0000)]
test/store_test: BluestoreStatFSTest fixes for issues introduced with bluestore_compression_min_blob_size adjustment

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: some cleanup around garbage collector
Igor Fedotov [Wed, 5 Oct 2016 15:14:10 +0000 (15:14 +0000)]
os/bluestore: some cleanup around garbage collector

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11344 from xiexingguo/xxg-wip-bluestore-1006
Igor Fedotov [Thu, 6 Oct 2016 10:47:03 +0000 (13:47 +0300)]
Merge pull request #11344 from xiexingguo/xxg-wip-bluestore-1006

os/bluestore: fix write_big counter and some more cleanups

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: fix comment 11344/head
xie xingguo [Thu, 6 Oct 2016 09:33:00 +0000 (17:33 +0800)]
os/bluestore: fix comment

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: simplify bluestore_gc_merge_data checking
xie xingguo [Thu, 6 Oct 2016 08:59:31 +0000 (16:59 +0800)]
os/bluestore: simplify bluestore_gc_merge_data checking

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: fix counter of l_bluestore_write_big_bytes
xie xingguo [Thu, 6 Oct 2016 08:44:30 +0000 (16:44 +0800)]
os/bluestore: fix counter of l_bluestore_write_big_bytes

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: more cleanups on _do_write_small()
xie xingguo [Thu, 6 Oct 2016 08:33:00 +0000 (16:33 +0800)]
os/bluestore: more cleanups on _do_write_small()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: add _dump_transaction to reduce code redundancy
xie xingguo [Thu, 6 Oct 2016 07:54:42 +0000 (15:54 +0800)]
os/bluestore: add _dump_transaction to reduce code redundancy

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: upgrade wal_seq to std::atomic
xie xingguo [Thu, 6 Oct 2016 07:36:20 +0000 (15:36 +0800)]
os/bluestore: upgrade wal_seq to std::atomic

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #11336 from liewegas/wip-bluestore-spanning-map
Sage Weil [Wed, 5 Oct 2016 22:36:20 +0000 (17:36 -0500)]
Merge pull request #11336 from liewegas/wip-bluestore-spanning-map

os/bluestore: switch spanning_blob_map to std::map

8 years agoMerge pull request #11340 from yehudasa/wip-13286
Casey Bodley [Wed, 5 Oct 2016 20:34:14 +0000 (16:34 -0400)]
Merge pull request #11340 from yehudasa/wip-13286

rgw-admin: allow unsetting user's email

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #11334 from ceph/wip-make-dist-tag
Alfredo Deza [Wed, 5 Oct 2016 19:30:24 +0000 (15:30 -0400)]
Merge pull request #11334 from ceph/wip-make-dist-tag

make-dist: set rpm_release correctly for release builds

Reviewed-by: Alfredo Deza <adeza@redhat.com>
8 years agorgw: remove user email index using helper function 11340/head
Yehuda Sadeh [Wed, 5 Oct 2016 18:41:42 +0000 (11:41 -0700)]
rgw: remove user email index using helper function

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw:user email can modify to empty
Weijun Duan [Sat, 27 Feb 2016 09:28:14 +0000 (04:28 -0500)]
rgw:user email can modify to empty

Fixes: http://tracker.ceph.com/issues/13286
Signed-off-by: Weijun Duan <duanweijun@h3c.com>
8 years agomake-dist: set rpm_release correctly for release builds 11334/head
Dan Mick [Wed, 5 Oct 2016 18:01:26 +0000 (11:01 -0700)]
make-dist: set rpm_release correctly for release builds

Similar to autobuild-ceph 17591db, only try to set rpm_release if there
is a release part to the git describe output (i.e. if it's not at a
version tag)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoos/bluestore: switch spanning_blob_map to std::map 11336/head
Sage Weil [Wed, 5 Oct 2016 16:17:07 +0000 (12:17 -0400)]
os/bluestore: switch spanning_blob_map to std::map

The intrusive map overhead on Blob is expensive when a tiny fraction of
Blobs actually end up in the spanning_blob_map.  Let's pay the extra
allocation overhead (for the map node holding the BlobRef) for those rare
cases.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11127 from SirishaGuduru/multitenancy-doc-change
Yehuda Sadeh [Wed, 5 Oct 2016 16:07:17 +0000 (09:07 -0700)]
Merge pull request #11127 from SirishaGuduru/multitenancy-doc-change

Changed config parameter "rgw keystone make new tenants" in radosgw multitenancy

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10159 from mhackett/wip-mhackett-16604
Yehuda Sadeh [Wed, 5 Oct 2016 16:04:02 +0000 (09:04 -0700)]
Merge pull request #10159 from mhackett/wip-mhackett-16604

doc: add rgw_enable_usage_log option in Rados Gateway admin guide

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10641 from weiqiaomiao/wqm-wip-rgw-s3api
Yehuda Sadeh [Wed, 5 Oct 2016 15:55:34 +0000 (08:55 -0700)]
Merge pull request #10641 from weiqiaomiao/wqm-wip-rgw-s3api

doc/radosgw: fix description of response elements 'Part'

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #11286 from yehudasa/wip-16930
Casey Bodley [Wed, 5 Oct 2016 14:51:08 +0000 (10:51 -0400)]
Merge pull request #11286 from yehudasa/wip-16930

rgw: don't fail if lost race when setting acls

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: remove unused variable "ostr" in rgw_b64.h and fix the comment 11329/head
Weibing Zhang [Wed, 5 Oct 2016 14:34:33 +0000 (22:34 +0800)]
rgw: remove unused variable "ostr" in rgw_b64.h and fix the comment

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
8 years agoMerge pull request #11319 from markhpc/wip-bluestore-optimize-size
Sage Weil [Wed, 5 Oct 2016 14:15:22 +0000 (09:15 -0500)]
Merge pull request #11319 from markhpc/wip-bluestore-optimize-size

os/bluestore: optimize intrusive sets for size.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11313 from ceph/wip-krbd-lock-on-read-option
Jason Dillaman [Wed, 5 Oct 2016 14:00:29 +0000 (10:00 -0400)]
Merge pull request #11313 from ceph/wip-krbd-lock-on-read-option

rbd: recognize lock_on_read option

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoos/bluestore: simplify BufferSpace writing_map / list 11328/head
Sage Weil [Wed, 5 Oct 2016 13:56:09 +0000 (09:56 -0400)]
os/bluestore: simplify BufferSpace writing_map / list

We were tracking buffers by seq.  In reality, though, we
won't have very many buffers that have in flight IO to
the same blob at the same time, so we can get by with
just a list here.  We can rely on the fact that the
list will be sorted (seq's increase, and we put new
buffers at the end).

This saves us a memory allocation.  No change in size of
BufferSpace and Blob (std::list -> intrusive::list).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_bluestore_types: more type sizeofs
Sage Weil [Wed, 5 Oct 2016 13:44:53 +0000 (09:44 -0400)]
unittest_bluestore_types: more type sizeofs

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11264 from liewegas/wip-bluestore-blob-split
Sage Weil [Wed, 5 Oct 2016 13:44:30 +0000 (08:44 -0500)]
Merge pull request #11264 from liewegas/wip-bluestore-blob-split

os/bluestore: try to split blobs instead of spanning them

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: make Buffer smaller
Sage Weil [Wed, 5 Oct 2016 13:43:07 +0000 (09:43 -0400)]
os/bluestore: make Buffer smaller

160 -> 152 bytes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11323 from liewegas/wip-bluestore-more-types
Igor Fedotov [Wed, 5 Oct 2016 11:04:01 +0000 (14:04 +0300)]
Merge pull request #11323 from liewegas/wip-bluestore-more-types

unittest_bluestore_types: a few more types for sizeof

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #10223 from mikulely/doc-s3-static-website-support
Yehuda Sadeh [Wed, 5 Oct 2016 00:12:30 +0000 (17:12 -0700)]
Merge pull request #10223 from mikulely/doc-s3-static-website-support

doc: update s3 static webiste feature support status

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #11325 from yehudasa/wip-17499
Yehuda Sadeh [Wed, 5 Oct 2016 00:02:51 +0000 (17:02 -0700)]
Merge pull request #11325 from yehudasa/wip-17499

rgw: need to 'open_object_section' before dump stats in 'RGWGetUsage_…

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: need to 'open_object_section' before dump stats in 'RGWGetUsage_ObjStore_S3... 11325/head
weiqiaomiao [Sat, 4 Jun 2016 09:21:33 +0000 (17:21 +0800)]
rgw: need to 'open_object_section' before dump stats in 'RGWGetUsage_ObjStore_S3::send_response()' function

Fixes: http://tracker.ceph.com/issues/17499
Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
8 years agoMerge pull request #10820 from yanghonggang/master
Yehuda Sadeh [Tue, 4 Oct 2016 23:20:51 +0000 (16:20 -0700)]
Merge pull request #10820 from yanghonggang/master

rgw: fix get object instance  returned NoSuchKey error

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10726 from weiqiaomiao/wqm-wip-remove-ret
Yehuda Sadeh [Tue, 4 Oct 2016 22:48:05 +0000 (15:48 -0700)]
Merge pull request #10726 from weiqiaomiao/wqm-wip-remove-ret

rgw: remove the field ret from class RGWPutLC

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: make BufferSpace smaller
Sage Weil [Tue, 4 Oct 2016 22:14:16 +0000 (18:14 -0400)]
os/bluestore: make BufferSpace smaller

Saves 24 bytes!

BufferSpace  104 -> 80 bytes
SharedBlob   216 -> 192 bytes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: pack SharedBlob
Sage Weil [Tue, 4 Oct 2016 22:04:49 +0000 (18:04 -0400)]
os/bluestore: pack SharedBlob

224 -> 216 bytes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: pack Blob members
Sage Weil [Tue, 4 Oct 2016 22:03:06 +0000 (18:03 -0400)]
os/bluestore: pack Blob members

272 -> 264 bytes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_bluestore_types: a few more types for sizeof 11323/head
Sage Weil [Tue, 4 Oct 2016 17:38:48 +0000 (13:38 -0400)]
unittest_bluestore_types: a few more types for sizeof

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #6501 from dwj192/check-index-multipart
Yehuda Sadeh [Tue, 4 Oct 2016 20:49:05 +0000 (13:49 -0700)]
Merge pull request #6501 from dwj192/check-index-multipart

rgw:bucket check remove _multipart_ prefix

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #10558 from cbodley/wip-rgw-mdlog-history
Yehuda Sadeh [Tue, 4 Oct 2016 20:10:29 +0000 (13:10 -0700)]
Merge pull request #10558 from cbodley/wip-rgw-mdlog-history

rgw: store oldest mdlog period in rados

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: optimize intrusive sets for size. 11319/head
Mark Nelson [Tue, 4 Oct 2016 20:04:36 +0000 (15:04 -0500)]
os/bluestore: optimize intrusive sets for size.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
8 years agoos/bluestore: fix has_aios -> has_pending_aios 11317/head
Sage Weil [Tue, 4 Oct 2016 19:28:31 +0000 (15:28 -0400)]
os/bluestore: fix has_aios -> has_pending_aios

This is only called from safe callers (with exclusive access),
so we don't need a lock.

It also should only return true for *pending* aios--not aios
we've already submitted!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/KernelDevice: fix aio_submit race
Sage Weil [Tue, 4 Oct 2016 19:24:31 +0000 (15:24 -0400)]
os/bluestore/KernelDevice: fix aio_submit race

Behave if pending is empty.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11312 from liewegas/wip-bluestore-assign-blob
Sage Weil [Tue, 4 Oct 2016 18:10:10 +0000 (13:10 -0500)]
Merge pull request #11312 from liewegas/wip-bluestore-assign-blob

os/bluestore: fix crash in decode_some()

8 years agorbd: recognize lock_on_read option 11313/head
Ilya Dryomov [Mon, 3 Oct 2016 12:09:11 +0000 (14:09 +0200)]
rbd: recognize lock_on_read option

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #10372 from cbodley/wip-rgw-data-log-trim
Yehuda Sadeh [Tue, 4 Oct 2016 17:20:31 +0000 (10:20 -0700)]
Merge pull request #10372 from cbodley/wip-rgw-data-log-trim

rgw multisite: trim data logs as peer zones catch up

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoos/bluestore: fix crash in decode_some() 11312/head
Sage Weil [Tue, 4 Oct 2016 16:52:27 +0000 (12:52 -0400)]
os/bluestore: fix crash in decode_some()

shared_blob must be non-null when we call Extent::assign_blob().

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11295 from liewegas/wip-bluestore-cache
Sage Weil [Tue, 4 Oct 2016 15:39:50 +0000 (10:39 -0500)]
Merge pull request #11295 from liewegas/wip-bluestore-cache

os/bluestore: make cache settings process-wide

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #11291 from trociny/wip-qa-mirror-asok
Jason Dillaman [Tue, 4 Oct 2016 15:22:53 +0000 (11:22 -0400)]
Merge pull request #11291 from trociny/wip-qa-mirror-asok

qa/workunits/rbd: check status also in pool dir after asok commands

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11278 from gaurav36/wip-obsolete-rgw-admin-period-prepare
Casey Bodley [Tue, 4 Oct 2016 15:14:50 +0000 (11:14 -0400)]
Merge pull request #11278 from gaurav36/wip-obsolete-rgw-admin-period-prepare

rgw: obsolete 'radosgw-admin period prepare' command

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agounittest_bluestore_types: show sizeof for key types 11295/head
Sage Weil [Tue, 4 Oct 2016 15:14:08 +0000 (11:14 -0400)]
unittest_bluestore_types: show sizeof for key types

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11307 from jcsp/wip-mgr-compile
John Spray [Tue, 4 Oct 2016 15:03:16 +0000 (16:03 +0100)]
Merge pull request #11307 from jcsp/wip-mgr-compile

mgr: squash compiler warnings

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoos/bluestore: use Extent::assign_blob
Sage Weil [Tue, 4 Oct 2016 14:59:15 +0000 (10:59 -0400)]
os/bluestore: use Extent::assign_blob

More explicit, less error-prone.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11299 from liewegas/wip-mgr-fix
John Spray [Tue, 4 Oct 2016 14:44:39 +0000 (15:44 +0100)]
Merge pull request #11299 from liewegas/wip-mgr-fix

mgr: implement con reset handling

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11308 from liewegas/wip-mgr-valgrind
John Spray [Tue, 4 Oct 2016 14:05:31 +0000 (15:05 +0100)]
Merge pull request #11308 from liewegas/wip-mgr-valgrind

mgr/MgrMap: initialize all fields

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoos/bluestore: only split blobs on min_alloc_size boundaries 11264/head
Sage Weil [Tue, 4 Oct 2016 14:01:07 +0000 (10:01 -0400)]
os/bluestore: only split blobs on min_alloc_size boundaries

Otherwise we can throw off the allocator.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorgw multisite: obsolete 'radosgw-admin period prepare' command 11278/head
Gaurav Kumar Garg [Fri, 30 Sep 2016 11:56:20 +0000 (13:56 +0200)]
rgw multisite: obsolete 'radosgw-admin period prepare' command

All that the 'radosgw-admin period prepare' command does is create an
empty period and write it to rados. When we added the staging period
(see 'period get --staging'), uncommitted changes were written to that
instead - so the 'period prepare' command became obsolete. It should be
removed!

Fixes: http://tracker.ceph.com/issues/17387
Reported-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
8 years agoos/bluestore: prune deallocated blob tails
Sage Weil [Thu, 29 Sep 2016 15:20:44 +0000 (11:20 -0400)]
os/bluestore: prune deallocated blob tails

This saves us space: no invalid extent, and no unused csum_data.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: try to split blobs instead of spanning them
Sage Weil [Wed, 28 Sep 2016 21:54:46 +0000 (17:54 -0400)]
os/bluestore: try to split blobs instead of spanning them

If a blob crosses a shard boundary, try to split it into pieces
instead of making it spanning.  This is only possible under
certain conditions (uncompressed, no in-flight writes, no unused
space, shard boundary aligned with chunk boundary).

Generally speaking this will reduce the number of blobs that end
up spanning and reduce the onode key size.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrMap: initialize all fields 11308/head
Sage Weil [Tue, 4 Oct 2016 13:23:27 +0000 (09:23 -0400)]
mgr/MgrMap: initialize all fields

Fixes: http://tracker.ceph.com/issues/17492
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: squash compiler warnings 11307/head
John Spray [Tue, 4 Oct 2016 13:07:50 +0000 (14:07 +0100)]
mgr: squash compiler warnings

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #11254 from xiexingguo/xxg-wip-fs-0929
John Spray [Tue, 4 Oct 2016 13:12:41 +0000 (14:12 +0100)]
Merge pull request #11254 from xiexingguo/xxg-wip-fs-0929

mds/MDCache: kill a comipler warning

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #11306 from trociny/fixup-notify_image_updated
Jason Dillaman [Tue, 4 Oct 2016 13:05:28 +0000 (09:05 -0400)]
Merge pull request #11306 from trociny/fixup-notify_image_updated

librbd: memory leak in MirroringWatcher::notify_image_updated

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11303 from ceph/wip-rbd-clarify-size
Jason Dillaman [Tue, 4 Oct 2016 13:00:22 +0000 (09:00 -0400)]
Merge pull request #11303 from ceph/wip-rbd-clarify-size

doc: clarify rbd size units

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agolibrbd: memory leak in MirroringWatcher::notify_image_updated 11306/head
Mykola Golub [Tue, 4 Oct 2016 12:54:09 +0000 (15:54 +0300)]
librbd: memory leak in MirroringWatcher::notify_image_updated

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #11257 from trociny/wip-17355-fixup
Jason Dillaman [Tue, 4 Oct 2016 12:48:05 +0000 (08:48 -0400)]
Merge pull request #11257 from trociny/wip-17355-fixup

journal: ensure in-flight ops are complete destroying journaler

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11259 from b-ranto/wip-selinux-tmp-files
Boris Ranto [Tue, 4 Oct 2016 11:30:18 +0000 (13:30 +0200)]
Merge pull request #11259 from b-ranto/wip-selinux-tmp-files

selinux: Allow ceph to manage tmp files

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
8 years agodoc: clarify rbd size units 11303/head
Ilya Dryomov [Tue, 4 Oct 2016 08:21:36 +0000 (10:21 +0200)]
doc: clarify rbd size units

It wasn't clear from the man page that --size defaults to M.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #11218 from ceph/wip-getuid
Gregory Farnum [Tue, 4 Oct 2016 05:30:55 +0000 (22:30 -0700)]
Merge pull request #11218 from ceph/wip-getuid

Client: pass "UserPerm" struct everywhere for security checks

Reviewed-by: Jeff Layton <jlayton@redhat.com>
8 years agorgw: fix versioned object IO error 10820/head
Yang Honggang [Tue, 4 Oct 2016 01:18:09 +0000 (09:18 +0800)]
rgw: fix versioned object IO error

    When accessing a copied destination object, its source object's instance ID
    information is needed, however it's missing now in the destination object's
    manifest.

    In order to fix this problem, we can record source object's version_id/instance
    into dest object's manifest(a new filed 'tail_instance' is added). When creating
    a new object(not copy), 'tail_instance' should be equal to its instance value.
    When copy/get a object, 'tail_instance' should always be used to get the right
    tail objects.

Fixes: http://tracker.ceph.com/issues/17111
Signed-off-by: Yang Honggang <joseph.yang@xtaotech.com>
8 years agoos/bluestore: turn bluestore_onode_cache_size 16k -> 4k
Sage Weil [Mon, 3 Oct 2016 22:34:02 +0000 (18:34 -0400)]
os/bluestore: turn bluestore_onode_cache_size 16k -> 4k

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: drop unnecessary assert
Sage Weil [Mon, 3 Oct 2016 22:30:15 +0000 (18:30 -0400)]
os/bluestore: drop unnecessary assert

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: instrument cache blob and extent counts
Sage Weil [Mon, 3 Oct 2016 22:28:37 +0000 (18:28 -0400)]
os/bluestore: instrument cache blob and extent counts

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agounittest_bluestore_types: attach blobs to cache
Sage Weil [Mon, 3 Oct 2016 22:28:26 +0000 (18:28 -0400)]
unittest_bluestore_types: attach blobs to cache

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agodo_cmake.sh: set .ceph_port to random port
Sage Weil [Mon, 3 Oct 2016 18:52:38 +0000 (14:52 -0400)]
do_cmake.sh: set .ceph_port to random port

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: add perf counters for cache size
Sage Weil [Mon, 3 Oct 2016 15:58:20 +0000 (11:58 -0400)]
os/bluestore: add perf counters for cache size

Onodes, buffers, buffer bytes.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix typo in write_penalty_read_ops perf counter
Sage Weil [Fri, 30 Sep 2016 22:35:10 +0000 (18:35 -0400)]
os/bluestore: fix typo in write_penalty_read_ops perf counter

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fix cache tunables to be process-wide
Sage Weil [Mon, 3 Oct 2016 15:08:49 +0000 (11:08 -0400)]
os/bluestore: fix cache tunables to be process-wide

Divide by the shard count so that the user isn't totally
confused.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11300 from liewegas/wip-bluestore-onode-add
Sage Weil [Mon, 3 Oct 2016 22:11:57 +0000 (17:11 -0500)]
Merge pull request #11300 from liewegas/wip-bluestore-onode-add

os/bluestore: fix onode cache addition race

8 years agoos/bluestore: fix onode cache addition race 11300/head
Sage Weil [Mon, 3 Oct 2016 21:36:50 +0000 (17:36 -0400)]
os/bluestore: fix onode cache addition race

Two threads may try to add the same onode to the cache.
This is rare, but allowed (in the case of the meta
collection).  If that happens, one of them will just
back off and use the winning onode ref.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/MgrClient: implement con reset handling 11299/head
Sage Weil [Mon, 3 Oct 2016 18:42:35 +0000 (14:42 -0400)]
mgr/MgrClient: implement con reset handling

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11298 from liewegas/wip-mgr-fix
Gregory Farnum [Mon, 3 Oct 2016 18:13:12 +0000 (11:13 -0700)]
Merge pull request #11298 from liewegas/wip-mgr-fix

mgr/MgrClient: fix ms_handle_reset
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agomgr/MgrClient: fix ms_handle_reset 11298/head
Sage Weil [Mon, 3 Oct 2016 17:59:51 +0000 (13:59 -0400)]
mgr/MgrClient: fix ms_handle_reset

Return false because we don't handle the reset.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11292 from rzarzynski/yj-wip-swift-build_token-cleanup
Radoslaw Zarzynski [Mon, 3 Oct 2016 15:53:19 +0000 (17:53 +0200)]
Merge pull request #11292 from rzarzynski/yj-wip-swift-build_token-cleanup

rgw/swift: remove redundant assignment operation

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #11019 from liewegas/wip-autotools-must-die
Kefu Chai [Mon, 3 Oct 2016 15:52:38 +0000 (23:52 +0800)]
Merge pull request #11019 from liewegas/wip-autotools-must-die

autotools: remove a few other remaining traces

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11294 from trociny/fixup-qa-rbd_mirror-metadata_set
Jason Dillaman [Mon, 3 Oct 2016 15:50:04 +0000 (11:50 -0400)]
Merge pull request #11294 from trociny/fixup-qa-rbd_mirror-metadata_set

qa/workunits/rbd: set image-meta on primary image and wait it is replicated

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #11288 from stiopaa1/osd_replicatedpg_moveCOSDOnAppliedClass
Sage Weil [Mon, 3 Oct 2016 14:26:03 +0000 (09:26 -0500)]
Merge pull request #11288 from stiopaa1/osd_replicatedpg_moveCOSDOnAppliedClass

osd/ReplicatedPG:move C_OSD_OnApplied class to cc

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11289 from stiopaa1/mds_sessionmap_moveStatementUnderAssertPushPv
Sage Weil [Mon, 3 Oct 2016 14:25:36 +0000 (09:25 -0500)]
Merge pull request #11289 from stiopaa1/mds_sessionmap_moveStatementUnderAssertPushPv

mds/SessionMap.h: change statement to assertion

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoqa/workunits/rbd: set image-meta on primary image and wait it is replicated 11294/head
Mykola Golub [Mon, 3 Oct 2016 14:02:59 +0000 (17:02 +0300)]
qa/workunits/rbd: set image-meta on primary image and wait it is replicated

After recently added image metadata replication it is not possible any
more to update it on non-primary image.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>