Commit Graph

35989 Commits

Author SHA1 Message Date
Abhishek Lekshmanan
f8179353ef mailmap: Daniel Schepler affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-29 21:32:28 +05:30
Abhishek Lekshmanan
29efada5e1 mailmap: Cheng Cheng affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-29 21:32:28 +05:30
Abhishek Lekshmanan
b167f7047c mailmap: Sahid Ferdjaoui affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
2014-09-29 21:32:28 +05:30
Abhishek Lekshmanan
4b33b584ba mailmap: Jiang Heng affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-29 21:32:28 +05:30
Abhishek Lekshmanan
b386b5981a mailmap: JuanJose Galvez affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-29 21:32:28 +05:30
Abhishek Lekshmanan
e6bba0d5db mailmap: Roman Haritonov affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-29 21:32:28 +05:30
Abhishek Lekshmanan
e133a92ecb mailmap: Yongyue Sun affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-09-29 21:31:29 +05:30
Abhishek Lekshmanan
688622424e mailmap: Yan Zheng affiliation
Also adding Yan Zheng to .peoplemap to track org. change

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-25 12:28:12 +05:30
Abhishek Lekshmanan
fc1380b1a2 mailmap: Thorsten Glaser affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Thorsten Glaser <tg@mirbsd.de>
2014-09-25 12:27:26 +05:30
Abhishek Lekshmanan
e270216f8d mailmap: William A. Kennington III affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-23 11:24:30 +05:30
Abhishek Lekshmanan
9f0202b02a mailmap: Jason Dillaman affiliation
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2014-09-23 11:21:45 +05:30
Loic Dachary
3cf38bbb70 Merge pull request #2547 from wkennington/master
Cleanup boost optionals for boost 1.56

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
2014-09-21 13:22:08 +02:00
William A. Kennington III
a53ead14c1 osd: Cleanup boost optionals
Signed-off-by: William A. Kennington III <william@wkennington.com>
2014-09-21 01:20:46 -07:00
Yan, Zheng
7fe6e10544 Merge pull request #2431 from ceph/wip-6613
Wip 9178
2014-09-20 11:51:36 +08:00
Sage Weil
77b9f4a562 Merge pull request #2529 from dachary/wip-doc-troubleshooting
documentation: fix bugous osd stop/start example
2014-09-19 14:40:47 -07:00
Sage Weil
927f14b942 Merge pull request #2532 from dachary/wip-doc-tiering
documentation: tiering typo
2014-09-19 14:40:24 -07:00
Sage Weil
bdb1f0f087 Merge remote-tracking branch 'gh/wip-9301'
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
2014-09-19 14:27:19 -07:00
Jason Dillaman
b47fdd400e rbd: Use a rolling average to compute RBD write throughput
Replace the cumulative average with a rolling average
to better expose variations within IOS/sec and bytes/sec.

Fixes: #9374
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2014-09-19 13:53:43 -07:00
Sage Weil
e34b8ad55b Merge pull request #2537 from ceph/wip-coverity-20140919
Various fixes for Coverity issues

Reviewed-by: Sage Weil <sage@redhat.com>
2014-09-19 11:34:30 -07:00
Sage Weil
305e4c4995 Merge pull request #2526 from ceph/wip-6228
common: Add cctid meta variable

Backport: giant, firefly
Reviewed-by: Sage Weil <sage@redhat.com>
2014-09-19 09:47:21 -07:00
Danny Al-Gaaf
b82ceda777 rgw_main.cc: add missing virtual destructor for RGWRequest
CID 1160858 (#1 of 1): Non-virtual destructor (VIRTUAL_DTOR)
 nonvirtual_dtor: Class RGWLoadGenRequest has a destructor
 and a pointer to it is upcast to class RGWRequest which doesn't
 have a virtual destructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:32:11 +02:00
Danny Al-Gaaf
13b8c92a29 os/GenericObjectMap.cc: pass big parameter by reference
CID 1188142 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
 pass_by_value: Passing parameter header of type
 GenericObjectMap::_Header (size 176 bytes) by value.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:32:06 +02:00
Danny Al-Gaaf
45e0b33de2 common/buffer.cc: catch exception by reference
CID 1135926 (#1 of 1): Big parameter passed by value (PASS_BY_VALUE)
pass_by_value: Catching an exception object of size 264 bytes by value.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:32:03 +02:00
Danny Al-Gaaf
7e829509fe test/kv_store_bench.cc: fix coverity REVERSE_INULL
CID 1021214 (#1 of 1): Dereference before null check (REVERSE_INULL)
 check_after_deref: Null-checking cb_args suggests that it may be
 null, but it has already been dereferenced on all paths leading to
 the check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:32:00 +02:00
Danny Al-Gaaf
48389d0714 test/libradosstriper/striping.cc: remove dead initialization
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:31:57 +02:00
Danny Al-Gaaf
ff6148324a mds/Beacon.*: fix UNINIT_CTOR cases
CID 1238905 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member want_state is not initialized
  in this constructor nor in any functions that it calls.
 uninit_member: Non-static class member last_send is not initialized
  in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:31:53 +02:00
Danny Al-Gaaf
ea02dc37dc ErasureCodeLrc.h: fix UNINIT_CTOR
Fix Coverity issue, preinit with 0:

uninit_member: Non-static class member chunk_count is not initialized
 in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:27:14 +02:00
Danny Al-Gaaf
2bb35bba99 ErasureCodeLrc.h: fix data_chunk_count UNINIT_CTOR
CID 1238903 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member data_chunk_count is not
 initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:27:11 +02:00
Danny Al-Gaaf
2c2b413ee0 LogEntry.h: init LogEntry::seq with 0
CID 1238904 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use_in_call: Using uninitialized value e.seq when calling
 log_to_syslog.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:27:08 +02:00
Danny Al-Gaaf
af039ce8e0 test/librados/aio.cc: close resource leak
Release my_completion4.

CID 1219581 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion4 going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-09-19 18:26:29 +02:00
Loic Dachary
5cb994d776 Merge pull request #2536 from dachary/wip-doc-reweight
documentation: explain ceph osd reweight vs crush weight

Reviewed-by: Laurent Guerby <laurent@guerby.net>
2014-09-19 17:30:02 +02:00
Loic Dachary
639c9818fe documentation: explain ceph osd reweight vs crush weight
Using the wording from Gregory Farnum at
http://lists.ceph.com/pipermail/ceph-users-ceph.com/2014-June/040961.html

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-19 17:19:41 +02:00
Loic Dachary
0fb0967e95 documentation: tiering typo
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-19 15:05:27 +02:00
Loic Dachary
be97b7d5b8 documentation: fix bugous osd stop/start example
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
2014-09-19 10:29:20 +02:00
Adam Crume
bb45621cb1 common: Add cctid meta variable
Fixes: #6228
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-09-18 16:57:27 -07:00
Gregory Farnum
9442336f92 Merge pull request #2514 from ceph/wip-acl-test
qa/workunits/fs/misc: Add a workunit for ACL

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-09-18 15:01:15 -07:00
Sage Weil
c421b55e8e mon: re-bootstrap if we get probed by a mon that is way ahead
During bootstrap we verify that our paxos commits overlap with the other
mons we will form a quorum with.  If they do not, we do a sync.

However, it is possible we pass those checks, then fail to join a quorum
before the quorum moves ahead in time such that we no longer overlap.
Currently nothing kicks up back into a probing state to discover we need
to sync... we will just keep trying to call or join an election instead.

Fix this by jumping back to bootstrap if we get a probe that is ahead of
us.  Only do this from non probe or sync states as these will be common;
it is only the active and electing states that matter (and probably just
electing!).

Fixes: #9301
Backport: giant, firefly
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-18 14:23:36 -07:00
Sage Weil
d81cd7f866 mon/Paxos: fix off-by-one in last_ vs first_committed check
peon last_committed + 1 == leader first_committed is okay.  Note that the
other check (where I clean up whitespace) gets this correct.

Fixes: #9301 (partly)
Signed-off-by: Sage Weil <sage@redhat.com>
2014-09-18 14:11:24 -07:00
Samuel Just
5c8143e3d5 Merge pull request #2457 from ceph/wip-7767-b
msg: prefetch data when doing recv()

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktnak.com>
2014-09-18 09:28:05 -07:00
Samuel Just
a8e6de307f Merge pull request #2440 from somnathr/wip-optracker-optimization
Wip optracker optimization

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-09-18 09:26:40 -07:00
Samuel Just
95768963f2 Merge pull request #2445 from wonzhq/req-pending
Cache tiering: do not allow flush/evict when there are requests pending

Reviewed-by: Samuel Just <sam.just@inktank.com>
2014-09-18 09:25:18 -07:00
John Spray
ab545ad0f9 Merge pull request #2515 from ceph/wip-9518
mds: fix not journaling client metadata

Reviewed-by: Yan, Zheng <ukernel@gmail.com>
2014-09-18 13:53:45 +01:00
John Spray
1395275e0f mds: fix not journaling client metadata
Previously the code was there for storing in
the SessionMap table, but not for the ESession
logevent.

Fixes: #9518

Signed-off-by: John Spray <john.spray@redhat.com>
2014-09-18 10:29:06 +01:00
Yan, Zheng
346c06c164 client: preserve ordering of readdir result in cache
Preserve ordering of readdir result in a list, so that the result of cached
readdir is consistant with uncached readdir.

As a side effect, this commit also removes the code that removes stale dentries.
This is OK because stale dentries does not have valid lease, they will be
filter out by the shared gen check in Client::_readdir_cache_cb()

Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-18 15:56:04 +08:00
Yan, Zheng
600af25493 client: introduce a new flag indicating if dentries in directory are sorted
When creating a file, Client::insert_dentry_inode() set the dentry's offset
based on directory's max offset. The offset does not reflect the real
postion of the dentry in directory. Later readdir reply from real postion
of the dentry in directory. Later readdir reply from MDS may change the
dentry's position/offset. This inconsistency can cause missing/duplicate
entries in readdir result if readdir is partly satisfied by dcache_readdir().

The fix is introduce a new flag indicating if dentries in directory are
sorted. We use _readdir_cache_cb() to handle readdir only when the flag is
set, clear the flag after creating/deleting/renaming file.

Fixes: #9178
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-18 15:55:58 +08:00
Yan, Zheng
59c89760c7 qa/workunits/fs/misc: Add a workunit for ACL
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2014-09-18 14:20:59 +08:00
Yan, Zheng
051cc7d525 Merge pull request #2503 from ceph/wip-xattr-fix
Wip xattr fix
2014-09-18 10:55:43 +08:00
Josh Durgin
829981792a Merge remote-tracking branch 'origin/giant' 2014-09-17 12:23:17 -07:00
John Spray
cef34f4299 Merge pull request #2498 from ceph/wip-objecter-cancel
osdc/Objecter: cancel timeout before clearing op->session

Reviewed-by: John Spray <john.spray@redhat.com>
2014-09-17 19:07:22 +01:00
Gregory Farnum
f27ccd805e Merge pull request #2513 from ceph/wip-decode-dump
msg: dump messages we can' decode at a low devel level

Reviewed-by: Greg Farnum <greg@inktank.com>
2014-09-17 10:15:03 -07:00