Sage Weil
f5e9d8e610
Merge pull request #9110 from stiopaa1/osd_moveTickClasses
...
osd: move tick classes
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-13 09:35:46 -04:00
John Spray
a4e440eb44
Merge pull request #8887 from jcsp/wip-15689
...
osdc: send error to recovery waiters on shutdown
Reviewed-by: Yan, Zheng <zyan@redhat.com>
2016-05-13 08:25:01 -05:00
John Spray
ae2346579f
Merge pull request #8835 from xiaoxichen/implement_fsync_in_pybind
...
pybind: expose fsync in cephfs binding.
Reviewed-by: John Spray <john.spray@redhat.com>
2016-05-13 08:17:05 -05:00
runsisi
3494a2ac66
osd/ReplicatedBackend: reuse the already computed cost
...
no need to compute the cost a second time
Signed-off-by: runsisi <runsisi@zte.com.cn>
2016-05-13 16:51:06 +08:00
Samuel Just
b224912d24
Pipe: take a ref to existing while we are waiting
...
Otherwise, if it is reaped while we are waiting, it'll be a
use-after-free.
Fixes: http://tracker.ceph.com/issues/15870
Signed-off-by: Samuel Just <sjust@redhat.com>
2016-05-12 17:02:42 -07:00
Michal Jarzabek
ef3ea0150b
osd/OSD.cc: add override to virtual functions
...
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-05-12 21:13:45 +01:00
Michal Jarzabek
2af377925a
osd/OSD: move C_Tick and C_Tick_WithoutOSDLock
...
Since above classes are implementation detail of OSD class move them
to the .cc file.
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-05-12 21:13:38 +01:00
Casey Bodley
5db5c9f8be
rgw: RGWZoneGroup::add_zone rejects duplicate zone names
...
Fixes: http://tracker.ceph.com/issues/15613
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-05-12 15:24:06 -04:00
Casey Bodley
6c05cd3b27
radosgw-admin: 'zone create' doesn't need to load RGWRealm
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-05-12 15:24:06 -04:00
Sage Weil
c347087e0a
Merge pull request #9079 from liewegas/wip-bluestore-freelist
...
os/bluestore: switch to bitmap freelist by default
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-05-12 13:56:30 -04:00
Sage Weil
7d8fb8a050
Merge pull request #8956 from shinobu-x/wip-shinobu
...
os/bluestore: fix permissions on StupidAllocator.cc, cleanups
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-12 13:56:03 -04:00
Kefu Chai
9eee5eba6d
Merge pull request #9074 from tchaikov/wip-cmake-manpages
...
cmake: build man pages
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-05-12 22:14:18 +08:00
Abhishek Lekshmanan
4c849a34d7
rgw_rados: remove unused ioctx for domain root in create_bucket
...
In `create_bucket`, we open an ioctx for domain root pool and never use
it later, removing this.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-05-12 16:09:23 +02:00
Sage Weil
18d2bb9bc2
osd/OSDMap: fix clean_temps and test
...
For both pg_temp and primary_temp, we want to calculate what the
mapping *will* be after the inc is applied, and if the mapping is
redundant (it matches what we would have gotten anyway), remove
it. Removing the mapping might mean putting a 'remove' entry in
the inc, or it might mean removing the proposed addition in the
inc.
Update the unit test to test both cases.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-12 09:59:30 -04:00
Sage Weil
1a255b9252
osd/OSDMap: consolidate into clean_temps
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-12 09:59:30 -04:00
Sage Weil
94f414a684
osd/OSDMap: move primary_temp checks to check_down_temps
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-12 09:59:30 -04:00
Sage Weil
bf9a9e241a
osd/OSDMap: move redundant pg_temp check to remove_down_temps
...
Better to do this on the future map value.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-12 09:59:30 -04:00
Sage Weil
eeeec9772b
osd/OSDMap: move old pool check to remove_down_temps
...
Better to do this on the projected map state.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-12 09:59:29 -04:00
Sage Weil
ddcf1a9a33
osd/OSDMap: minor optimization of remove_down_temps
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-12 09:59:29 -04:00
Mykola Golub
ddd6345f8f
doc: fixup: "rbd-mirror daemon" instead of "rbd-daemon"
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-05-12 11:11:55 +03:00
Kefu Chai
31a0e0c4d8
cmake: restructure and add missing manpages
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-05-12 13:47:49 +08:00
Kefu Chai
ef6b52373c
cmake: build man pages
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-05-12 13:01:52 +08:00
Jason Dillaman
82af391cea
Merge pull request #9024 from trociny/fixup-rbd-mirror-asok
...
rbd-mirror: don't unregister asok commands if image replayer start failed
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-05-11 17:13:11 -04:00
Jason Dillaman
221ea5e2fe
Merge pull request #9025 from trociny/fixup-rbd-mirror-status
...
rbd-mirror: avoid potential deadlock
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-05-11 17:00:39 -04:00
Jason Dillaman
6ba2195124
Merge pull request #9043 from fullerdj/wip-djf-fsx-fix
...
test/rbd: document fsx option to keep data on success
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-05-11 16:36:17 -04:00
Jason Dillaman
490c5623e7
Merge pull request #9071 from runsisi/wip-rbd-mirror-minor-cleanup
...
rbd-mirror: minor cleanup
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-05-11 16:28:48 -04:00
Yuri Weinstein
62ad33e567
Merge pull request #8924 from xiexingguo/xxg-wip-monitor
...
mon/Monitor: fix memory leak; add leaked key to tracked_conf_key
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Marcel Lauhoff <lauhoff@uni-mainz.de>
2016-05-11 11:47:36 -07:00
Yuri Weinstein
a3d84dae04
Merge pull request #8952 from badone/wip-i-am-osd-fix
...
osd: Trivial grammatical fix 'i' to 'I'
Reviewed-by: songbaisen <song.baisen@zte.com.cn>
2016-05-11 11:36:07 -07:00
Yuri Weinstein
a42a6d97eb
Merge pull request #8993 from XinzeChi/wip-copy-get
...
osd: fix ReplicatedPG::fill_in_copy_get logic
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-11 11:33:03 -07:00
Yuri Weinstein
3bad8c91fa
Merge pull request #8995 from xiexingguo/xxg-wip-fixpingreply
...
osd: fix potential access violation during handling PING_REPLY
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-05-11 11:31:03 -07:00
Sage Weil
305c2defd0
Merge pull request #8990 from tchaikov/wip-13990
...
osd: remove all stale osdmaps in handle_osd_map()
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-05-11 14:21:03 -04:00
Sage Weil
95b32b147a
Merge pull request #8998 from kylinstorage/wip-fix-wrong-raw-pointer-conversion
...
librados: fix wrong raw pointer conversion
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-05-11 14:17:52 -04:00
Josh Durgin
09319535c9
qa: rbd/map-snapshot-io.sh: don't chown sysfs files
...
qa: rbd/map-snapshot-io.sh: don't chown sysfs files
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-05-11 11:14:36 -07:00
Ilya Dryomov
38a572011d
qa: rbd/map-snapshot-io.sh: don't chown sysfs files
...
/sys/bus/rbd/add_single_major is used if present, so chown'ing
/sys/bus/rbd/add doesn't help. Use sudo on rbd map instead.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2016-05-11 19:59:42 +02:00
Sage Weil
d227759d79
os/bluestore: switch to bitmap freelist by default
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 13:51:26 -04:00
Sage Weil
7bfe2be26c
doc/release-notes: v0.94.7 hammer
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 13:44:53 -04:00
Sage Weil
c68c5ce563
common/address_helper: drop entity_addr_from_sockaddr
...
entity_addr_t::set_sockaddr() does this.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 12:40:18 -04:00
Sage Weil
c19d2cebf9
msg/xio: use set_sockaddr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 12:39:48 -04:00
Sage Weil
863672c546
common/address_helper: use set_sockaddr
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 12:39:42 -04:00
Sage Weil
93e77701ed
Merge pull request #8377 from vshankar/bs-alloc-cleanup
...
bluefs: use Allocator::create() to instantiate allocator
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-11 12:31:15 -04:00
John Spray
e590f4d05f
pybind: fix unicode handling in CephFSVolumeClient::purge
...
os.path.join is sensitive to string encoding, but
just doing a straight substitution should not be.
Signed-off-by: John Spray <john.spray@redhat.com>
2016-05-11 16:53:16 +01:00
Sage Weil
5168d912bf
Merge pull request #8482 from majianpeng/bluestore-prefallocate
...
os/bluestore/BlueStore: preallocate space when use file instead of blockdevice
Reviewed-by: Sage Weil <sage@redhat.com>
2016-05-11 10:52:42 -04:00
Sage Weil
c50b0b2398
msg/msg_types: drop sockaddr_storage from entity_addr_t
...
This reduces the struct size by a ton! 136 -> 36 bytes.
Encode to sockaddr_storage is now slightly slower.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 10:41:49 -04:00
Sage Weil
f987e8f3ba
msg/async/AsyncConnection: do not use sizeof(entity_addr_t)
...
Protocol is defined in terms of ceph_entity_addr.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 10:41:48 -04:00
Sage Weil
7374ce9de5
msg/simple/Pipe: do not use sizeof(entity_addr_t)
...
The protocol is defined in terms of ceph_entity_addr; use that.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 10:41:48 -04:00
Sage Weil
fc450d0c52
msg/msg_types: put sockaddr_* fields in a union
...
No functional change here, just a rename.
Name the fields after the struct prefixes (e.g., sockaddr_in.sin_ -> sin).
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 10:41:48 -04:00
Sage Weil
b7af482197
test/librbd/exclusive_lock: use proper entity_addr_t accessors
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-05-11 10:41:48 -04:00
Yan, Zheng
953d2d9cee
mds: don't pin purging stray dentries
...
Allow MDCache::trim() to trim stray dentries in purge queue. This can
avoid pinning large number of strays in memory.
If StrayManager wants to purge a stray, but corresponding dentry/inode
is not cached. StrayManager fetches the stray dentry from metadata
pool.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-05-11 22:39:52 +08:00
John Spray
3a570d7110
Merge pull request #8771 from xiaoxichen/configurable_prefix
...
pybind: configurable cephfs_vol_client prefix.
Reviewed-by: John Spray <john.spray@redhat.com>
2016-05-11 09:08:12 -05:00
runsisi
25bfd4c786
rbd-mirror: fix typo
...
Signed-off-by: runsisi <runsisi@zte.com.cn>
2016-05-11 21:10:27 +08:00