Commit Graph

58590 Commits

Author SHA1 Message Date
Willem Jan Withagen
9eeb491f00 src/msg/async/EventKqueue: refactor and add test_thread_change()
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-10-15 13:09:51 +02:00
Willem Jan Withagen
a534069cf4 src/msg/async/EventKqueue.cc: adjust logging levels.
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-10-15 13:04:36 +02:00
Willem Jan Withagen
4e3ed5ad04 src/msg/async/EventKqueue.{h,cc} Added code to restore events on (thread)fork
According the FreeBSD man page of kqueue(), the kq-descriptors become invalid
upon fork. It looks like the same happens when a kq-handle is created and then
a thread is created.

So we keep a list of assigned events with each kq-handle and when the handle
has beccome invalid, we recreated the kq-handle and the events that go with it.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-10-15 13:04:36 +02:00
Sage Weil
b1853bfe98 Merge pull request #11427 from ifed01/wip-bluestore-fix-test
test/store_test: fix errors on the whole test suite run caused by the…

Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-11 09:17:19 -05:00
Igor Fedotov
776219ef6d test/store_test: fix errors on the whole test suite run caused by the lack of properites restore in some test cases
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-11 14:11:51 +00:00
John Spray
701d9e1e63 Merge pull request #11150 from renhwztetecs/renhw-wip-mds-server-open
mds/server: merge the snapshot request judgment

Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-11 12:27:21 +02:00
John Spray
9c2dac156f Merge pull request #11209 from david-z/wip-clear-dup-logic-mdsmonitor
mon: clear duplicated logic in MDSMonitor

Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-11 12:26:56 +02:00
John Spray
d9f54fbfe1 Merge pull request #11358 from stiopaa1/mds_sessionmaph_unneededCount
mds/SessionMap.h: remove unneeded use of count

Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-11 12:26:03 +02:00
John Spray
4d9bce4923 Merge pull request #11362 from batrick/i17531
mds: respawn using /proc/self/exe

Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-11 12:24:10 +02:00
John Spray
8ce51e5db5 Merge pull request #11359 from batrick/i17276
client: add pid to metadata

Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-11 12:23:50 +02:00
Mykola Golub
47447bfba2 Merge pull request #11395 from dillaman/wip-17549
librbd: ignore notify errors on missing image header

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-10-11 10:55:55 +03:00
Kefu Chai
577ad3dff6 Merge pull request #11404 from bassamtabbara/wip-fix-yasm-system-check
cmake: Fix for cross compiling

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-10-11 15:29:16 +08:00
Mykola Golub
4cc823ef56 Merge pull request #11356 from dillaman/wip-17528
librbd: update internals to use optional separate data pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-10-11 08:58:45 +03:00
Gregory Farnum
42126ca6de Merge pull request #11297 from stiopaa1/mds_sessionmap_avoidCopyingPlusConst
mds/SessionMap.cc: avoid copying and add const

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-10 15:47:15 -06:00
Gregory Farnum
1821c14c09 Merge pull request #11283 from jcsp/wip-print-legacy-client-fscid
mds: include legacy client fsid in FSMap print

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-10 15:46:55 -06:00
Bassam Tabbara
4c5bd5d287 cmake: Fix for cross compiling
The check for yasm tool was calling uname -m which will not
work when cross compiling. Use CMAKE_SYSTEM_PROCESSOR instead.

Signed-off-by: Bassam Tabbara <bassam.tabbara@quantum.com>
2016-10-10 14:41:55 -07:00
David Zafman
3a2be4874f Merge pull request #11206 from dzafman/wip-16474
osd: Remove extra call to reg_next_scrub() during splits

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-10-10 13:55:16 -07:00
Loic Dachary
ed82c02c54 Merge pull request #11399 from theanalyst/wip-release-notes
scripts/release-notes: allow title guesses from gh tags & description update

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-10-10 22:17:18 +02:00
Abhishek Lekshmanan
4d5cb5c852 build/ops: ceph-release-notes guess pr title based on gh tags
We add a switch --use-tags which helps guess the component of the pr
based on gh tags, still needs work, but provides better estimates when
looking at really large release notes where guessing each pr would be
too much work

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
2016-10-10 21:59:56 +02:00
Abhishek Lekshmanan
d8955d5568 scripts: add description to ceph-release-notes
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
2016-10-10 21:39:51 +02:00
Jason Dillaman
3b81f68719 librbd: include pool id in data block prefix if data pool enabled
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 14:08:09 -04:00
Jason Dillaman
cb3712e08c librbd: initialize the data pool IO context during image open state machine
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 14:08:09 -04:00
Jason Dillaman
f5a244ae3d librbd: store data pool id with image header during creation
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 14:08:09 -04:00
Mykola Golub
e4a3d56e34 Merge pull request #11355 from dillaman/wip-17424
rbd: add support for separate image data pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-10-10 21:07:44 +03:00
Casey Bodley
4ededdba53 Merge pull request #10731 from yehudasa/wip-rgw-sync-plugins
rgw: sync modules, metadata search

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-10-10 13:51:10 -04:00
Jason Dillaman
fe3e2eafa0 librbd: ignore notify errors on missing image header
The rename op on v1 images fails since the header no longer exists. In
the general case, the removal of the header object will also fail the
watcher which has its own recovery path.

Fixes: http://tracker.ceph.com/issues/17549
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 11:57:03 -04:00
Jason Dillaman
97fb2e014e Merge pull request #11363 from xiexingguo/xxg-wip-fix-rbd-warn
cls_rbd: silence compiler warnings

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 11:07:11 -04:00
Sage Weil
870c428004 Merge pull request #11371 from stiopaa1/mds_cinode_removeCount
mds/CInode.h: remove unneeded use of count

Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-10 10:03:25 -05:00
Sage Weil
64daf4cfe6 Merge pull request #11383 from stiopaa1/mds_fsmap_passSharedPtrByConstRef
mds/FSMap: pass shared_ptr by const ref
2016-10-10 10:00:05 -05:00
Jason Dillaman
d54c44350b rbd: include data pool name within info command
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 10:41:57 -04:00
Jason Dillaman
f0d36b7a39 rbd: support overriding image data pool when creating images
Fixes: http://tracker.ceph.com/issues/17424
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 10:41:57 -04:00
Jason Dillaman
d776165f6a Merge pull request #11290 from trociny/wip-17017
rbd-mirror HA: move librbd::image_watcher::Notifier to librbd::object_watcher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 10:41:25 -04:00
Jason Dillaman
297f21d88b Merge pull request #11260 from runsisi/wip-fix-mirror-image-disable
librbd: fix rollback if failed to disable mirroring for image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 10:40:33 -04:00
Sage Weil
5f0a360b52 Merge pull request #11301 from liewegas/wip-bluestore-buffered-write
os/bluestore: allow default to buffered write

Reviewed-by: Mark Nelson <mnelson@redhat.com>
2016-10-10 09:40:06 -05:00
Jason Dillaman
99cd30914f Merge pull request #11370 from ceph/wip-krbd-unmap-options
rbd: expose rbd unmap options

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-10-10 10:17:09 -04:00
Sage Weil
3cc40d769b Merge pull request #11255 from dzafman/wip-scrub-boundary
osd: fix scrub boundary to not include a SnapSet

Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-10 09:12:16 -05:00
Sage Weil
e416ccafc1 Merge pull request #11377 from xiexingguo/xxg-wip-bluestore-1008
os/bluestore: drop inline_dirty from struct ExtentMap

Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-10 08:48:43 -05:00
xie xingguo
096811cf06 os/bluestore: narrow scope of 'pos'
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-10 19:39:18 +08:00
John Spray
150d383272 Merge pull request #11281 from jcsp/wip-17466
mds: handle bad standby_for_fscids in fsmap

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-10 13:21:07 +02:00
xie xingguo
262f2c429e os/bluestore: get rid of multiple call to dirty_blob()
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-10 18:52:23 +08:00
Kefu Chai
7f21c6f7fc Merge pull request #10722 from stiopaa1/mon_moncap_addMoveToStrings
mon/MonCap.h: add std::move for std::string

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-10-10 14:47:21 +08:00
Kefu Chai
d2b6b34215 Merge pull request #10916 from jordan41177/fix-17169
mon: OSDMonitor: fix the check error of pg creating

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-10-10 14:39:56 +08:00
Kefu Chai
838de494fb Merge pull request #10720 from wjwithagen/wip-wjw-freebsd-socket-shutdown
msg/simple/Accepter.cc: replace shutdown() with selfpipe event in poll() (FreeBSD)

Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-10 14:38:56 +08:00
Kefu Chai
d06c13c58d Merge pull request #10601 from stiopaa1/mon_monclient_subwantRemoveCount
mon/MonClient.h: remove repeated searching of map

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-10-10 14:33:54 +08:00
Kefu Chai
0566f7b635 Merge pull request #11145 from atheism/msg-async-fix-specifier
msg: fix format specifier for unsigned value id

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-10-10 14:32:31 +08:00
Michal Jarzabek
ab7a5dce76 mds/FSMap: pass shared_ptr by const ref
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-10-09 13:50:54 +01:00
xie xingguo
9ebdab9983 os/bluestore: fix raw blob encoded size
The maximum length of fixed fields of bluestore_blob_t shall be:

uint64_t sbid                       ///< 8 bytes
uint32_t compressed_length_orig     ///< 4 bytes
uint32_t compressed_length          ///< 4 bytes
uint32_t flags                      ///< 4 bytes
uint8_t csum_type                   ///< 1 byte
uint8_t csum_chunk_order            ///< 1 byte
unused_t unused;                    ///< 2 bytes

8 + 4 + 4 + 4 + 1 + 1 + 2 = 24

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-09 20:04:33 +08:00
Michal Jarzabek
72a8c96dc4 mds/SessionMap.h: remove unneeded use of count
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-10-09 12:49:23 +01:00
xie xingguo
70de0985eb os/bluestore: add counter to trace number of garbage collection reads
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-09 17:33:27 +08:00
xie xingguo
9d8f444cd2 os/bluestore: kill dead lines to keep code clean
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-09 15:40:50 +08:00