]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agorgw/user: remove needless bufferlist encoding 9748/head
Yan Jun [Thu, 16 Jun 2016 08:42:13 +0000 (16:42 +0800)]
rgw/user: remove needless bufferlist encoding

info encoded but never be used.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
9 years agoMerge pull request #9708 from tchaikov/wip-make_rocksdb_makefile-without-rdb
Dan Mick [Wed, 15 Jun 2016 22:50:05 +0000 (15:50 -0700)]
Merge pull request #9708 from tchaikov/wip-make_rocksdb_makefile-without-rdb

script/make_rocksdb_makefile.sh: do not include rocksdb/tools/rdb/*

Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Sage Weil <sweil@redhat.com>
9 years agoMerge pull request #9713 from xiexingguo/xxg-wip-server_droppin
John Spray [Wed, 15 Jun 2016 22:43:28 +0000 (23:43 +0100)]
Merge pull request #9713 from xiexingguo/xxg-wip-server_droppin

server: drop locks and auth pins before waiting for trunc

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9710 from xiexingguo/xxg-wip-server_duplock
John Spray [Wed, 15 Jun 2016 22:42:43 +0000 (23:42 +0100)]
Merge pull request #9710 from xiexingguo/xxg-wip-server_duplock

Server: avoid duplicated call to acquire_locks()

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9706 from xiexingguo/xxg-wip-server_dcr
John Spray [Wed, 15 Jun 2016 22:42:01 +0000 (23:42 +0100)]
Merge pull request #9706 from xiexingguo/xxg-wip-server_dcr

mds/server: avoid side-effect of more() method

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9647 from xiexingguo/xxg-wip-server_hcr
John Spray [Wed, 15 Jun 2016 22:41:37 +0000 (23:41 +0100)]
Merge pull request #9647 from xiexingguo/xxg-wip-server_hcr

server: fix potential access violation

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #8737 from david-z/wip-mds-slow-req-output
John Spray [Wed, 15 Jun 2016 22:40:43 +0000 (23:40 +0100)]
Merge pull request #8737 from david-z/wip-mds-slow-req-output

mds: ceph status outputs mds slow request for better monitoring

Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9526 from liewegas/wip-bluestore-csum2
Sage Weil [Wed, 15 Jun 2016 19:57:30 +0000 (15:57 -0400)]
Merge pull request #9526 from liewegas/wip-bluestore-csum2

os/bluestore: vary csum chunk sizes based on hints

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoos/bluestore: add crc32c_16 and crc32c_8 9526/head
Sage Weil [Wed, 15 Jun 2016 19:23:17 +0000 (15:23 -0400)]
os/bluestore: add crc32c_16 and crc32c_8

This is much faster than a slice-by-8 crc16, perhaps even without the
intel instructions.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: whitespace
Sage Weil [Wed, 15 Jun 2016 19:20:21 +0000 (15:20 -0400)]
os/bluestore: whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agocompressor/snappy: style cleanup
Sage Weil [Mon, 6 Jun 2016 21:22:51 +0000 (17:22 -0400)]
compressor/snappy: style cleanup

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agocompressor/snappy: compress to page-aligned memory buffer
Sage Weil [Mon, 6 Jun 2016 21:13:16 +0000 (17:13 -0400)]
compressor/snappy: compress to page-aligned memory buffer

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: remove unused ext_offset region_t field
Sage Weil [Mon, 6 Jun 2016 20:46:09 +0000 (16:46 -0400)]
os/bluestore: remove unused ext_offset region_t field

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: simplify spare read path, remove pextent constraint
Sage Weil [Mon, 6 Jun 2016 20:00:26 +0000 (16:00 -0400)]
os/bluestore: simplify spare read path, remove pextent constraint

The previous read code had the constraint that a physical extent had to
be a multiple of the csum chunk size.  This isn't needed: we might have
a csum_block of 1MB and min_alloc_size of 4KB and that's okay.

Collapse the two helpers into a single loop that uses the blob_t::map()
method to do the pextent part of the read.  This is simpler and avoids
the temporary extents2read structure.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: csum_block -> csum_chunk
Sage Weil [Mon, 6 Jun 2016 18:53:22 +0000 (14:53 -0400)]
os/bluestore: csum_block -> csum_chunk

Be consistent with terminology.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: ensure blob_t::put_ref respects csum chunk size
Sage Weil [Mon, 6 Jun 2016 18:52:22 +0000 (14:52 -0400)]
os/bluestore: ensure blob_t::put_ref respects csum chunk size

We can't deallocate part of a csum chunk.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_objectstore: test larger writes from Synthetic
Sage Weil [Mon, 6 Jun 2016 18:49:38 +0000 (14:49 -0400)]
ceph_test_objectstore: test larger writes from Synthetic

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_objectstore: randomly vary object size and write size hints
Sage Weil [Mon, 6 Jun 2016 18:30:45 +0000 (14:30 -0400)]
ceph_test_objectstore: randomly vary object size and write size hints

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: choose better csum_order in _do_alloc_write
Sage Weil [Mon, 6 Jun 2016 17:55:57 +0000 (13:55 -0400)]
os/bluestore: choose better csum_order in _do_alloc_write

Try to use the wctx hint, but set a floor based on the buffer length.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: make preferred csum order a function of expected_write_size
Sage Weil [Mon, 6 Jun 2016 15:10:06 +0000 (11:10 -0400)]
os/bluestore: make preferred csum order a function of expected_write_size

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: use larger csum blocks for sequential writes
Sage Weil [Mon, 6 Jun 2016 14:12:33 +0000 (10:12 -0400)]
os/bluestore: use larger csum blocks for sequential writes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: fix _do_alloc_write compress condition
Sage Weil [Fri, 3 Jun 2016 21:21:58 +0000 (17:21 -0400)]
os/bluestore: fix _do_alloc_write compress condition

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: set csum_order via WriteContext
Sage Weil [Fri, 3 Jun 2016 21:20:06 +0000 (17:20 -0400)]
os/bluestore: set csum_order via WriteContext

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: maintain min_alloc_size_order
Sage Weil [Fri, 3 Jun 2016 21:18:22 +0000 (17:18 -0400)]
os/bluestore: maintain min_alloc_size_order

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_objectstore: test alloc hints
Sage Weil [Mon, 6 Jun 2016 15:07:01 +0000 (11:07 -0400)]
ceph_test_objectstore: test alloc hints

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: print alloc hint flags as a string
Sage Weil [Mon, 6 Jun 2016 14:27:29 +0000 (10:27 -0400)]
os/bluestore: print alloc hint flags as a string

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/osd_types: add ceph_osd_alloc_hint_flag_string helper
Sage Weil [Mon, 6 Jun 2016 14:27:16 +0000 (10:27 -0400)]
osd/osd_types: add ceph_osd_alloc_hint_flag_string helper

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: _setallochint -> _set_alloc_hint
Sage Weil [Mon, 6 Jun 2016 14:26:45 +0000 (10:26 -0400)]
os/bluestore: _setallochint -> _set_alloc_hint

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: do not print bnode key to debug
Sage Weil [Mon, 6 Jun 2016 17:49:44 +0000 (13:49 -0400)]
os/bluestore: do not print bnode key to debug

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9607 from ifed01/wip-bluestore-statfs-fsck
Sage Weil [Wed, 15 Jun 2016 19:24:47 +0000 (15:24 -0400)]
Merge pull request #9607 from ifed01/wip-bluestore-statfs-fsck

os/bluestore: add statfs result consistency checking to fsck

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9524 from liewegas/wip-ctz
Sage Weil [Wed, 15 Jun 2016 19:14:30 +0000 (15:14 -0400)]
Merge pull request #9524 from liewegas/wip-ctz

common: add cbits/ctz/clz bit op helpers, replace open-coded calc_bits_for helpers

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoos/bluestore/StupidAllocator: use cbits instead of calculating shift manually 9524/head
Sage Weil [Mon, 6 Jun 2016 17:33:44 +0000 (13:33 -0400)]
os/bluestore/StupidAllocator: use cbits instead of calculating shift manually

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/osd_types: pg_pool_t::calc_bits_of -> cbits
Sage Weil [Mon, 6 Jun 2016 16:26:39 +0000 (12:26 -0400)]
osd/osd_types: pg_pool_t::calc_bits_of -> cbits

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9696 from ifed01/wip-bluestore-csum-fixes
Sage Weil [Wed, 15 Jun 2016 19:12:14 +0000 (15:12 -0400)]
Merge pull request #9696 from ifed01/wip-bluestore-csum-fixes

os/bluestore: fix for unaligned writes and improve test coverage

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9604 from ifed01/wip-bluestore-maxalloc
Sage Weil [Wed, 15 Jun 2016 19:05:51 +0000 (15:05 -0400)]
Merge pull request #9604 from ifed01/wip-bluestore-maxalloc

os/bluestore: add an option to limit max allocation size

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9378 from xiexingguo/xxg-wip-fix-piderrorcode
Sage Weil [Wed, 15 Jun 2016 19:04:42 +0000 (15:04 -0400)]
Merge pull request #9378 from xiexingguo/xxg-wip-fix-piderrorcode

global: negative error return code for pidfh::write()

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9397 from xiexingguo/xxg-wip-fixsocketfd-leak
Sage Weil [Wed, 15 Jun 2016 19:04:26 +0000 (15:04 -0400)]
Merge pull request #9397 from xiexingguo/xxg-wip-fixsocketfd-leak

common/admin_socket: fix socket fd leak

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8679 from prallabh/master
Matt Benjamin [Wed, 15 Jun 2016 15:09:35 +0000 (11:09 -0400)]
Merge pull request #8679 from prallabh/master

rgw: Have a flavor of bucket deletion to bypass GC.

it gets the OSDs substantially hotter (CPU), but is a large speedup (I measured 54% on a small setup, some distortion from debugging)

9 years agoos/bluestore: fix exceeding blob number after random 4K writes 9696/head
Igor Fedotov [Wed, 15 Jun 2016 14:07:14 +0000 (17:07 +0300)]
os/bluestore: fix exceeding blob number after random 4K writes

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agotest/store_test: add an additional bluestore test case to verify for exceeding blob...
Igor Fedotov [Wed, 15 Jun 2016 14:05:41 +0000 (17:05 +0300)]
test/store_test: add an additional bluestore test case to verify for exceeding blob number

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9666 from ceph/wip-ceph_test_objectstore
Kefu Chai [Wed, 15 Jun 2016 13:39:08 +0000 (21:39 +0800)]
Merge pull request #9666 from ceph/wip-ceph_test_objectstore

test: ceph_test_objectstore: do not override plugin-dir if not necessary

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agovstart.sh: set plugin-dir for cmake 9666/head
Kefu Chai [Mon, 13 Jun 2016 08:09:05 +0000 (16:09 +0800)]
vstart.sh: set plugin-dir for cmake

9 years agotest: ceph_test_objectstore: do not override plugin-dir if not necessary
Kefu Chai [Mon, 13 Jun 2016 04:26:29 +0000 (12:26 +0800)]
test: ceph_test_objectstore: do not override plugin-dir if not necessary

there is chance that we launch the test with the plugins installed in
`/usr/${lib}/ceph'. and we don't have ".lib" or $CEPH_LIB for
ceph_test_objectstore, in this case, we should leave plugin-dir
unchanged. it will work just fine if ceph-base or ceph-common is
installed.

Fixes: http://tracker.ceph.com/issues/16254
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9709 from trociny/wip-16289
Jason Dillaman [Wed, 15 Jun 2016 12:54:10 +0000 (08:54 -0400)]
Merge pull request #9709 from trociny/wip-16289

qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoos/bluestore: fixes assert on unaligned writes when csum verification is disabled
Igor Fedotov [Wed, 15 Jun 2016 11:57:10 +0000 (14:57 +0300)]
os/bluestore: fixes assert on unaligned writes when csum verification is disabled

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9442 from houlinfei/wip-modify-parlistseq
Loic Dachary [Wed, 15 Jun 2016 11:56:26 +0000 (13:56 +0200)]
Merge pull request #9442 from houlinfei/wip-modify-parlistseq

ceph-disk: modify the disk partition sequence of ceph-disk list

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoobjectstore/store_test: improves test coverage for Bluestore - adds no csum and many...
Igor Fedotov [Tue, 14 Jun 2016 14:50:25 +0000 (17:50 +0300)]
objectstore/store_test: improves test coverage for Bluestore - adds no csum and many 4K writes cases. Fix corresponding issues in testing framework.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #9354 from dreamhost/wip-15975
Orit Wasserman [Wed, 15 Jun 2016 09:42:09 +0000 (11:42 +0200)]
Merge pull request #9354 from dreamhost/wip-15975

rgw: Fallback to Host header for bucket name.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #9681 from xiexingguo/xxg-wip-server_ts
John Spray [Wed, 15 Jun 2016 08:45:43 +0000 (09:45 +0100)]
Merge pull request #9681 from xiexingguo/xxg-wip-server_ts

server: set terminating_sessions flag correctly

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9693 from xiexingguo/xxg-wip-server_hco2
John Spray [Wed, 15 Jun 2016 08:38:17 +0000 (09:38 +0100)]
Merge pull request #9693 from xiexingguo/xxg-wip-server_hco2

server: negative error code when responding to client

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9472 from xiexingguo/xxg-wip-fix-divisionbyzero
John Spray [Wed, 15 Jun 2016 08:37:11 +0000 (09:37 +0100)]
Merge pull request #9472 from xiexingguo/xxg-wip-fix-divisionbyzero

mds: fix potential division-by-zero error

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9445 from xiexingguo/xxg-wip-fix-mdsmemoryleak
John Spray [Wed, 15 Jun 2016 08:36:26 +0000 (09:36 +0100)]
Merge pull request #9445 from xiexingguo/xxg-wip-fix-mdsmemoryleak

mds: avoid duplicated call of context; fix potential memory leak

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9494 from renhwztetecs/renhw-wip-cdir-total
John Spray [Wed, 15 Jun 2016 08:34:16 +0000 (09:34 +0100)]
Merge pull request #9494 from renhwztetecs/renhw-wip-cdir-total

mds/cdir: fix the type of dentry in the judgment; cleanup undefined functions

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9649 from xiexingguo/xxg-wip-server_hco
John Spray [Wed, 15 Jun 2016 08:33:11 +0000 (09:33 +0100)]
Merge pull request #9649 from xiexingguo/xxg-wip-server_hco

server: return after respond_to_request() for EROFS

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #8218 from jupiturliu/kstore_r/w_flush
Sage Weil [Wed, 15 Jun 2016 08:31:56 +0000 (04:31 -0400)]
Merge pull request #8218 from jupiturliu/kstore_r/w_flush

os/kstore: we have flush_txns is to make sure read after write

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoserver: drop locks and auth pins before waiting for trunc 9713/head
xie xingguo [Wed, 15 Jun 2016 08:27:24 +0000 (16:27 +0800)]
server: drop locks and auth pins before waiting for trunc

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9639 from jjhuo/rocksdb-directio
Sage Weil [Wed, 15 Jun 2016 08:25:15 +0000 (04:25 -0400)]
Merge pull request #9639 from jjhuo/rocksdb-directio

os/bluestore: Add an option to choose bluefs direct or buffered io mode

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: v10.2.2
Sage Weil [Wed, 15 Jun 2016 08:18:23 +0000 (04:18 -0400)]
doc/release-notes: v10.2.2

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoServer: avoid duplicated call to acquire_locks() 9710/head
xie xingguo [Wed, 15 Jun 2016 06:15:22 +0000 (14:15 +0800)]
Server: avoid duplicated call to acquire_locks()

For snapped case we may call acquire_locks() twice,
which is not necessary.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoqa/workunits/rbd: respect RBD_CREATE_ARGS environment variable 9709/head
Mykola Golub [Tue, 14 Jun 2016 12:28:06 +0000 (15:28 +0300)]
qa/workunits/rbd: respect RBD_CREATE_ARGS environment variable

Fixes: http://tracker.ceph.com/issues/16289
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoServer: use req directly 9706/head
xie xingguo [Wed, 15 Jun 2016 02:42:19 +0000 (10:42 +0800)]
Server: use req directly

We have req pointed to mdr->client_request already, so use
it directly to keep the bothering of a long dereference series of
pointer(which also results in a longer line) away.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agomds/Mutation: avoid side-effect of slave_did_prepare() method
xie xingguo [Wed, 15 Jun 2016 02:33:36 +0000 (10:33 +0800)]
mds/Mutation: avoid side-effect of slave_did_prepare() method

We shall check _more does exist first.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agomds/Mutation: use c++11-style null pointer check
xie xingguo [Wed, 15 Jun 2016 02:25:03 +0000 (10:25 +0800)]
mds/Mutation: use c++11-style null pointer check

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoCeph status outputs mds slow request for better monitoring 8737/head
Zhi Zhang [Wed, 15 Jun 2016 03:28:34 +0000 (11:28 +0800)]
Ceph status outputs mds slow request for better monitoring

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
9 years agoscript/make_rocksdb_makefile.sh: do not include rocksdb/tools/rdb/* 9708/head
Kefu Chai [Wed, 15 Jun 2016 03:25:27 +0000 (11:25 +0800)]
script/make_rocksdb_makefile.sh: do not include rocksdb/tools/rdb/*

Fixes: http://tracker.ceph.com/issues/13554
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoserver: avoid side-effect of assert
xie xingguo [Wed, 15 Jun 2016 02:16:13 +0000 (10:16 +0800)]
server: avoid side-effect of assert

The more() method will implicitly allocate a new internal _more memeber
if it does not have and we shall avoid this.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9697 from jcsp/wip-16298
Yan, Zheng [Wed, 15 Jun 2016 02:02:54 +0000 (21:02 -0500)]
Merge pull request #9697 from jcsp/wip-16298

mds: fix MDLog recovery rare case

9 years agoMerge pull request #9705 from dillaman/wip-librados-compat
Josh Durgin [Wed, 15 Jun 2016 01:58:26 +0000 (18:58 -0700)]
Merge pull request #9705 from dillaman/wip-librados-compat

librados: restore ability to compile against librados

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agolibrados: restore ability to compile against librados 9705/head
Jason Dillaman [Wed, 15 Jun 2016 00:56:39 +0000 (20:56 -0400)]
librados: restore ability to compile against librados

Partial revert of 62be9268de5e9c9a08bdb977a7dab1ab9c55b2be which
added a new header dependency which was is not part of the librados
API.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9093 from zhouyuan/journaling_flush_skip_cache
Jason Dillaman [Wed, 15 Jun 2016 00:30:43 +0000 (20:30 -0400)]
Merge pull request #9093 from zhouyuan/journaling_flush_skip_cache

librbd: do not flush rbd cache if journaling is enabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd: Skip rbd cache flush if journaling is enabled under aio_flush 9093/head
Yuan Zhou [Thu, 12 May 2016 10:22:12 +0000 (18:22 +0800)]
rbd: Skip rbd cache flush if journaling is enabled under aio_flush

With journaling rbd writes will be persisteted on rbd journal objects.
The journal will be replayed if crash happen. So it's not necessary to
flush rbd_cache in this case. This will improve the flush latency.

This patch adds checking on handling aio_flush: if journaling is
enabled, rbd cache flushing is skipped.
In a system flush(ImageCtx::flush) the cache is flushed even w/ journaling
where we truly do need to flush all IO out to disk.

Fixes: http://tracker.ceph.com/issues/15761
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
9 years agoMerge pull request #7741 from rjfd/wip-14527
Matt Benjamin [Tue, 14 Jun 2016 19:38:03 +0000 (15:38 -0400)]
Merge pull request #7741 from rjfd/wip-14527

Lookup monitors through DNS, feature #7741

verified in teuthology (we had 8 failures that appear unrelated to this change)

9 years agoMerge pull request #9602 from tchaikov/wip-ceph_test_cls_hello
Kefu Chai [Tue, 14 Jun 2016 17:15:47 +0000 (01:15 +0800)]
Merge pull request #9602 from tchaikov/wip-ceph_test_cls_hello

test: fix ceph_test_cls_hello test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9572 from xiexingguo/xxg-wip-fix-ll_read_block
John Spray [Tue, 14 Jun 2016 16:44:23 +0000 (17:44 +0100)]
Merge pull request #9572 from xiexingguo/xxg-wip-fix-ll_read_block

client: fix wrong lock logic of ll_read_block() method

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9586 from xiexingguo/xxg-wip-fix_write
John Spray [Tue, 14 Jun 2016 16:43:34 +0000 (17:43 +0100)]
Merge pull request #9586 from xiexingguo/xxg-wip-fix_write

client: add check for _lseek() during _write() process

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9583 from xiexingguo/xxg-wip-fix_preadv_pwritev
John Spray [Tue, 14 Jun 2016 16:42:50 +0000 (17:42 +0100)]
Merge pull request #9583 from xiexingguo/xxg-wip-fix_preadv_pwritev

client: fix potential access violation

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #5521 from ceph/wip-12653
John Spray [Tue, 14 Jun 2016 16:29:49 +0000 (17:29 +0100)]
Merge pull request #5521 from ceph/wip-12653

ceph-fuse: fuse_disable_pagecache

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9590 from xiexingguo/xxg-wip-fix-make_request
John Spray [Tue, 14 Jun 2016 16:26:44 +0000 (17:26 +0100)]
Merge pull request #9590 from xiexingguo/xxg-wip-fix-make_request

client: fix error process if we fail to choose a target mds

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9537 from xiexingguo/xxg-wip-fix-clientmemoryleak
John Spray [Tue, 14 Jun 2016 16:26:01 +0000 (17:26 +0100)]
Merge pull request #9537 from xiexingguo/xxg-wip-fix-clientmemoryleak

client: fix potential memory leak

Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #9447 from ukernel/wip-mds-snap-fix
John Spray [Tue, 14 Jun 2016 16:23:33 +0000 (17:23 +0100)]
Merge pull request #9447 from ukernel/wip-mds-snap-fix

mds: fix SnapRealm::have_past_parents_open()

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agomds: fix MDLog recovery rare case 9697/head
John Spray [Tue, 14 Jun 2016 16:16:24 +0000 (17:16 +0100)]
mds: fix MDLog recovery rare case

This handled the case where one daemon
saw a log that was partially rewritten
by another.  It was calling the context
incorrectly (without mds_lock held)

Fixes: http://tracker.ceph.com/issues/16298
Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9540 from Yan-waller/yj-wip-rgwsystemobj
Matt Benjamin [Tue, 14 Jun 2016 14:28:47 +0000 (10:28 -0400)]
Merge pull request #9540 from Yan-waller/yj-wip-rgwsystemobj

rgw/rados: remove meaningless assignment operation

since the removed variable (manifest_bl) is indeed unused, this change cannot have any side effect

9 years agoMerge pull request #9689 from jmunhoz/aws4-streaming-fix-bs
Matt Benjamin [Tue, 14 Jun 2016 14:06:11 +0000 (10:06 -0400)]
Merge pull request #9689 from jmunhoz/aws4-streaming-fix-bs

rgw: aws4: fix buffer sharing issue with chunked uploads

verfified (by hand)

9 years agomds/MDSMap: change test_flag() return type from int to bool 9445/head
xie xingguo [Thu, 2 Jun 2016 07:06:21 +0000 (15:06 +0800)]
mds/MDSMap: change test_flag() return type from int to bool

which better matches its behaviour.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoserver: fix potential memory leak
xie xingguo [Tue, 14 Jun 2016 12:39:24 +0000 (20:39 +0800)]
server: fix potential memory leak

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agomds: cancel context correctly if we already have required osdmap in hand
xie xingguo [Tue, 14 Jun 2016 12:29:53 +0000 (20:29 +0800)]
mds: cancel context correctly if we already have required osdmap in hand

By simply deleting the fin, the callbacks will be requeued into
the specified finisher and recalled later, which is not the expected
behaviour.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9669 from ceph/wip-selinux
John Spray [Tue, 14 Jun 2016 12:34:56 +0000 (13:34 +0100)]
Merge pull request #9669 from ceph/wip-selinux

selinux: allow chown for self and setattr for /var/run/ceph

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9346 from jcsp/wip-enable-quota
John Spray [Tue, 14 Jun 2016 12:31:13 +0000 (13:31 +0100)]
Merge pull request #9346 from jcsp/wip-enable-quota

client: enable client_quota by default

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9591 from ukernel/wip-16066
John Spray [Tue, 14 Jun 2016 12:29:52 +0000 (13:29 +0100)]
Merge pull request #9591 from ukernel/wip-16066

client: kill QuotaTree

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9651 from renhwztetecs/renhw-wip-mdcache
John Spray [Tue, 14 Jun 2016 12:26:43 +0000 (13:26 +0100)]
Merge pull request #9651 from renhwztetecs/renhw-wip-mdcache

mds: fix mdsmap->get_metadata_pool() return to int64_t

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoserver: avoid duplicated call to utime_t 9681/head
xie xingguo [Tue, 14 Jun 2016 11:59:41 +0000 (19:59 +0800)]
server: avoid duplicated call to utime_t

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoserver: negative error code when responding to client 9693/head
xie xingguo [Tue, 14 Jun 2016 11:32:01 +0000 (19:32 +0800)]
server: negative error code when responding to client

As the comment suggests. Also a zero or positive return code
shall indicates a success, which does not match our intention here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #9672 from dillaman/wip-16260
Mykola Golub [Tue, 14 Jun 2016 11:21:54 +0000 (14:21 +0300)]
Merge pull request #9672 from dillaman/wip-16260

librbd: do not shut down exclusive lock while acquiring

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #9653 from trociny/wip-16245
Jason Dillaman [Tue, 14 Jun 2016 10:55:10 +0000 (06:55 -0400)]
Merge pull request #9653 from trociny/wip-16245

rbd-mirror: FAILED assert(!m_status_watcher)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #9675 from dillaman/wip-16268
Mykola Golub [Tue, 14 Jun 2016 10:27:16 +0000 (13:27 +0300)]
Merge pull request #9675 from dillaman/wip-16268

librbd: remove should ignore mirror errors from older OSDs

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agorgw: aws4: fix buffer sharing issue with chunked uploads 9689/head
Javier M. Mellid [Tue, 14 Jun 2016 09:04:23 +0000 (11:04 +0200)]
rgw: aws4: fix buffer sharing issue with chunked uploads

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
9 years agoMerge pull request #9684 from chhabaramesh/master
Sage Weil [Tue, 14 Jun 2016 09:08:15 +0000 (05:08 -0400)]
Merge pull request #9684 from chhabaramesh/master

os/bluestore: Fix for bit_alloc unit test case stack size and handle device that has less than block size at end.

9 years agoclient: kill QuotaTree 9591/head
Yan, Zheng [Wed, 8 Jun 2016 09:47:58 +0000 (17:47 +0800)]
client: kill QuotaTree

Multiple clients can modify cephfs at the same time. It is
very tricky to keep QuotaTree consistant with the global FS
hiberarchy. This patch kills the quota tree.

After removing the quota tree, we traverse inode's path to
find quota root.

Fixes: http://tracker.ceph.com/issues/16066
Fixes: http://tracker.ceph.com/issues/16067
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #9668 from ceph/wip-rocksdb-wo-rdb
Kefu Chai [Tue, 14 Jun 2016 08:48:20 +0000 (16:48 +0800)]
Merge pull request #9668 from ceph/wip-rocksdb-wo-rdb

rocksdb: remove rdb source files from dist tarball

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agotest: fix ceph_test_cls_hello test 9602/head
Kefu Chai [Thu, 9 Jun 2016 06:04:53 +0000 (14:04 +0800)]
test: fix ceph_test_cls_hello test

cls_register_cxx_filter() is exercised by cls_hello, so add the missing
stub for cls_register_cxx_filter() call.

Signed-off-by: Kefu Chai <kchai@redhat.com>