]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agounittest_shared_cache: fix build line
Sage Weil [Mon, 27 Oct 2014 20:37:45 +0000 (13:37 -0700)]
unittest_shared_cache: fix build line

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Mon, 27 Oct 2014 20:33:48 +0000 (13:33 -0700)]
Merge remote-tracking branch 'gh/giant'

Conflicts:
src/test/common/test_shared_cache.cc

10 years agodoc/release-notes: giant notes
Sage Weil [Mon, 27 Oct 2014 20:29:12 +0000 (13:29 -0700)]
doc/release-notes: giant notes

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2630 from ceph/wip-9545
Samuel Just [Mon, 27 Oct 2014 20:20:16 +0000 (13:20 -0700)]
Merge pull request #2630 from ceph/wip-9545

os/FileStore: do not loop in sync_entry on shutdown

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agorgw_rest_client.cc: remove self assignment of new_info.effective_uri
Danny Al-Gaaf [Thu, 23 Oct 2014 17:52:14 +0000 (19:52 +0200)]
rgw_rest_client.cc: remove self assignment of new_info.effective_uri

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge branch 'wip-da-SCA-20141025'
Sage Weil [Mon, 27 Oct 2014 19:44:34 +0000 (12:44 -0700)]
Merge branch 'wip-da-SCA-20141025'

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agotest/librbd/fsx.c: fix indentation (NESTING_INDENT_MISMATCH)
Danny Al-Gaaf [Mon, 27 Oct 2014 17:24:36 +0000 (18:24 +0100)]
test/librbd/fsx.c: fix indentation (NESTING_INDENT_MISMATCH)

Fix indentation to the same as the original fsx.c .

Fix for Coverity issue:

CID 1219473 (#1-2 of 2): Nesting level does not match indentation
(NESTING_INDENT_MISMATCH)
 uncle: This statement is indented to column 25, as if it were
 nested within the preceding parent statement, but it is not.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agolibradosstriper/striping.cc: fix strdup memory leaks
Danny Al-Gaaf [Mon, 27 Oct 2014 17:08:13 +0000 (18:08 +0100)]
libradosstriper/striping.cc: fix strdup memory leaks

Fix memory leak caused by using std::string to hold result
of strdup call returned from getObjName().

Fix for Coverity issues:

CID 1221525 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Failing to save or free storage allocated by
 this->getObjName(soid, 0UL) leaks it.

CID 1221526 (1-3 of 3): Resource leak (RESOURCE_LEAK)
 leaked_storage: Failing to save or free storage allocated by
 this->getObjName(soid, *) leaks it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest/libradosstriper/striping.cc: fix wrong indentation
Danny Al-Gaaf [Mon, 27 Oct 2014 12:26:07 +0000 (13:26 +0100)]
test/libradosstriper/striping.cc: fix wrong indentation

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomsg/async/Event.cc: use static_cast instead of c-style cast
Danny Al-Gaaf [Mon, 27 Oct 2014 11:01:56 +0000 (12:01 +0100)]
msg/async/Event.cc: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_formats.cc: fix realloc memory leak
Danny Al-Gaaf [Mon, 27 Oct 2014 10:09:01 +0000 (11:09 +0100)]
rgw/rgw_formats.cc: fix realloc memory leak

Fix handling of realloc. If realloc() fails it returns NULL, assigning
the return value of realloc() directly to the pointer without checking
for the result will lead to a memory leak in error case.

Use a temporary pointer to hold the result of realloc(). In error case
print error and exit, otherwise assign it to the pointer we want to realloc.

Fix also error checks for malloc to fail as soon as malloc fails and
don't try to run realloc again after failed malloc.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoarch/neon.c: check result of fread()
Danny Al-Gaaf [Sun, 26 Oct 2014 19:56:25 +0000 (20:56 +0100)]
arch/neon.c: check result of fread()

Fix for:

CID 1128384 (#1 of 1): Ignoring number of bytes read (CHECKED_RETURN)
 check_return: fread(void * restrict, size_t, size_t, FILE * restrict)
 returns the number of bytes read, but it is ignored.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocls_rgw_client.cc: fix potential null pointer deref
Danny Al-Gaaf [Sun, 26 Oct 2014 17:28:50 +0000 (18:28 +0100)]
cls_rgw_client.cc: fix potential null pointer deref

Fix for:

CID 1054853 (#1 of 1): Dereference before null check (REVERSE_INULL)
 check_after_deref: Null-checking is_truncated suggests that it may
 be null, but it has already been dereferenced on all paths leading
 to the check.

Add vim line to file.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoSyntheticClient.cc: check return value of getdir()
Danny Al-Gaaf [Sun, 26 Oct 2014 17:19:58 +0000 (18:19 +0100)]
SyntheticClient.cc: check return value of getdir()

Check return value as done in all other places. Fix error messages
to print correct function name getdir and not read_dir/readdir since
the error isn't necessarily raised by read_dir().

Fix for:
CID 1219463 (#1 of 1): Unchecked return value (CHECKED_RETURN)
 check_return: Calling getdir without checking return value (as
 is done elsewhere 4 out of 5 times).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoSyntheticClient.cc: remove empty lines in if/else blocks
Danny Al-Gaaf [Sun, 26 Oct 2014 17:13:59 +0000 (18:13 +0100)]
SyntheticClient.cc: remove empty lines in if/else blocks

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_rbd_replay.cc: fix va_list parameter handling
Danny Al-Gaaf [Sun, 26 Oct 2014 17:07:48 +0000 (18:07 +0100)]
test_rbd_replay.cc: fix va_list parameter handling

Fix for:

[src/test/test_rbd_replay.cc:193]: (portability) Passing NULL after the
last typed argument to a variadic function leads to undefined behaviour.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoAsyncConnection.cc: prefer ++operator for non-primitive iterators
Danny Al-Gaaf [Sat, 25 Oct 2014 08:44:16 +0000 (10:44 +0200)]
AsyncConnection.cc: prefer ++operator for non-primitive iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomon_store_converter.cc: move convert() call out of assert()
Danny Al-Gaaf [Thu, 23 Oct 2014 17:56:47 +0000 (19:56 +0200)]
mon_store_converter.cc: move convert() call out of assert()

The convert() call is changing data. To prevent Heisenbugs
depending in NDEBUG definition (e.g. if debug is off).

Move convert() call out of the assert call and use assert
only on the result value of the call.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_str_map.cc: remove unused variable
Danny Al-Gaaf [Thu, 23 Oct 2014 17:56:29 +0000 (19:56 +0200)]
test_str_map.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_rest_user.cc: reduce scope of key_type
Danny Al-Gaaf [Thu, 23 Oct 2014 17:55:55 +0000 (19:55 +0200)]
rgw/rgw_rest_user.cc: reduce scope of key_type

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_rest_swift.cc: use empty() instead of size()
Danny Al-Gaaf [Thu, 23 Oct 2014 17:54:02 +0000 (19:54 +0200)]
rgw/rgw_rest_swift.cc: use empty() instead of size()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw/rgw_rest_s3.cc: use !empty() instead of size() > 0
Danny Al-Gaaf [Thu, 23 Oct 2014 17:53:02 +0000 (19:53 +0200)]
rgw/rgw_rest_s3.cc: use !empty() instead of size() > 0

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2805 from xinxinsh/wip-check-trimmed-pg-log
Sage Weil [Mon, 27 Oct 2014 18:04:23 +0000 (11:04 -0700)]
Merge pull request #2805 from xinxinsh/wip-check-trimmed-pg-log

check to_remove before setting transaction

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2808 from ceph/wip-crush-link-id
Sage Weil [Mon, 27 Oct 2014 18:03:53 +0000 (11:03 -0700)]
Merge pull request #2808 from ceph/wip-crush-link-id

mon: fix `osd crush link` id resolution

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2589 from majianpeng/bug-fix
Sage Weil [Mon, 27 Oct 2014 18:02:30 +0000 (11:02 -0700)]
Merge pull request #2589 from majianpeng/bug-fix

Clock: Using clock_gettime instead of gettimeofday in linux os.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2806 from zhouyuan/lrc_dead_code
Loic Dachary [Mon, 27 Oct 2014 16:06:12 +0000 (17:06 +0100)]
Merge pull request #2806 from zhouyuan/lrc_dead_code

Remove dead code in EC LRC plugin

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agomon: fix `osd crush link` id resolution 2808/head
John Spray [Mon, 27 Oct 2014 10:50:54 +0000 (10:50 +0000)]
mon: fix `osd crush link` id resolution

A junk value for ID was falling through from
the outer scope.  Rename the outer one to
`osdid` and look up `id` explicitly in crush link.

For a bonus also add an error string for when
link_bucket returns an error (previously
would get plain "Error EINVAL")

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agoRemove dead code in EC LRC plugin 2806/head
Yuan Zhou [Mon, 27 Oct 2014 07:08:12 +0000 (15:08 +0800)]
Remove dead code in EC LRC plugin

The layer_minimum_to_decode() seems to be dead.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
10 years agocheck to_remove before setting transaction 2805/head
xinxin shu [Sun, 26 Oct 2014 21:25:54 +0000 (05:25 +0800)]
check to_remove before setting transaction

currently if you dump transaction for a single rbd write, a transaction
of OMAP_RMKEYS will be listed even if to_remove is empty.

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
10 years agoMerge pull request #2800 from ceph/wip-enoent-race
João Eduardo Luís [Sun, 26 Oct 2014 18:58:50 +0000 (18:58 +0000)]
Merge pull request #2800 from ceph/wip-enoent-race

os/LevelDBStore, RocksDBStore: fix race handling for get store size

Reviewed-by: Joao Eduardo Luis <joao@redhat.com>
10 years agorgw/rgw_rados.cc: remove unused variable 'objs'
Danny Al-Gaaf [Thu, 23 Oct 2014 17:51:33 +0000 (19:51 +0200)]
rgw/rgw_rados.cc: remove unused variable 'objs'

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/ReplicatedPG.cc: use !empty() instead of size() > 0
Danny Al-Gaaf [Thu, 23 Oct 2014 17:50:10 +0000 (19:50 +0200)]
osd/ReplicatedPG.cc: use !empty() instead of size() > 0

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoPGLog.cc: reduce scope of variable
Danny Al-Gaaf [Thu, 23 Oct 2014 17:49:30 +0000 (19:49 +0200)]
PGLog.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocommon/escape.c: add cppcheck-suppress
Danny Al-Gaaf [Thu, 23 Oct 2014 17:48:57 +0000 (19:48 +0200)]
common/escape.c: add cppcheck-suppress

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agofuse_ll.cc: use reinterpret_cast instead of c-style cast
Danny Al-Gaaf [Thu, 23 Oct 2014 17:48:21 +0000 (19:48 +0200)]
fuse_ll.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoJournalScanner.cc: reduce scope of local variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:58:45 +0000 (10:58 +0200)]
JournalScanner.cc: reduce scope of local variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_disk_bw.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:57:43 +0000 (10:57 +0200)]
test_disk_bw.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoobjectstore/store_test.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:56:50 +0000 (10:56 +0200)]
objectstore/store_test.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestErasureCodeIsa.cc: reduce scope of 'err' variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:51:30 +0000 (10:51 +0200)]
TestErasureCodeIsa.cc: reduce scope of 'err' variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestCrushWrapper.cc: reduce scope of variabele
Danny Al-Gaaf [Wed, 22 Oct 2014 08:50:48 +0000 (10:50 +0200)]
TestCrushWrapper.cc: reduce scope of variabele

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_sharedptr_registry.cc: reduce scope of local variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:50:15 +0000 (10:50 +0200)]
test_sharedptr_registry.cc: reduce scope of local variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agotest_shared_cache.cc: reduce scope of local variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:49:33 +0000 (10:49 +0200)]
test_shared_cache.cc: reduce scope of local variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoTestSignalHandlers.cc: add cppcheck-suppress nullPointer
Danny Al-Gaaf [Wed, 22 Oct 2014 08:49:02 +0000 (10:49 +0200)]
TestSignalHandlers.cc: add cppcheck-suppress nullPointer

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorgw_rest_user.cc: reduce scope of key_type in several places
Danny Al-Gaaf [Wed, 22 Oct 2014 08:48:23 +0000 (10:48 +0200)]
rgw_rest_user.cc: reduce scope of key_type in several places

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agorbd-replay-prep.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:47:29 +0000 (10:47 +0200)]
rbd-replay-prep.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/ReplicatedPG.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:46:43 +0000 (10:46 +0200)]
osd/ReplicatedPG.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/PGLog.cc: reduce scope of variable, remove not needed code
Danny Al-Gaaf [Wed, 22 Oct 2014 08:44:13 +0000 (10:44 +0200)]
osd/PGLog.cc: reduce scope of variable, remove not needed code

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoosd/PG.h: add cppcheck-suppress
Danny Al-Gaaf [Wed, 22 Oct 2014 08:28:24 +0000 (10:28 +0200)]
osd/PG.h: add cppcheck-suppress

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoos/chain_xattr.cc: reduce scope of some variables
Danny Al-Gaaf [Wed, 22 Oct 2014 08:27:51 +0000 (10:27 +0200)]
os/chain_xattr.cc: reduce scope of some variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoos/KeyValueStore.cc: reduce scope of variables
Danny Al-Gaaf [Wed, 22 Oct 2014 08:27:19 +0000 (10:27 +0200)]
os/KeyValueStore.cc: reduce scope of variables

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoos/HashIndex.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:26:52 +0000 (10:26 +0200)]
os/HashIndex.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomon/OSDMonitor.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:26:19 +0000 (10:26 +0200)]
mon/OSDMonitor.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomds/Server.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:25:47 +0000 (10:25 +0200)]
mds/Server.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agomds/MDS.cc: remove unused local variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:25:05 +0000 (10:25 +0200)]
mds/MDS.cc: remove unused local variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoErasureCodeLrc.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:24:17 +0000 (10:24 +0200)]
ErasureCodeLrc.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoErasureCodeIsa.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:23:21 +0000 (10:23 +0200)]
ErasureCodeIsa.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoErasureCodePlugin.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:22:46 +0000 (10:22 +0200)]
ErasureCodePlugin.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agocls_rbd_client.cc: reduce scope of variable
Danny Al-Gaaf [Wed, 22 Oct 2014 08:22:15 +0000 (10:22 +0200)]
cls_rbd_client.cc: reduce scope of variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2753 from dachary/wip-mailmap
Loic Dachary [Sat, 25 Oct 2014 23:44:31 +0000 (16:44 -0700)]
Merge pull request #2753 from dachary/wip-mailmap

mailmap updates

10 years agoos/LevelDBStore, RocksDBStore: fix race handling for get store size 2800/head
Sage Weil [Sat, 25 Oct 2014 04:23:19 +0000 (21:23 -0700)]
os/LevelDBStore, RocksDBStore: fix race handling for get store size

If we get ENOENT, skip this file, instead of adding in undefined stat
values.

Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agodoc/release-notes: v0.87 giant (draft)
Sage Weil [Fri, 24 Oct 2014 22:22:23 +0000 (15:22 -0700)]
doc/release-notes: v0.87 giant (draft)

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2763 from ceph/wip-da-SCA-20141010
Sage Weil [Fri, 24 Oct 2014 21:53:53 +0000 (14:53 -0700)]
Merge pull request #2763 from ceph/wip-da-SCA-20141010

Some fixes from SCA runs

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoPaxos.cc: use reinterpret_cast instead of c-style cast 2763/head
Danny Al-Gaaf [Tue, 21 Oct 2014 12:39:21 +0000 (14:39 +0200)]
Paxos.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agofuse_ll.cc: use reinterpret_cast instead of c-style cast
Danny Al-Gaaf [Tue, 21 Oct 2014 12:38:59 +0000 (14:38 +0200)]
fuse_ll.cc: use reinterpret_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agolibrados.cc: use static_cast instead of c-style cast
Danny Al-Gaaf [Tue, 21 Oct 2014 10:01:06 +0000 (12:01 +0200)]
librados.cc: use static_cast instead of c-style cast

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
10 years agoMerge pull request #2799 from athanatos/wip-9480
Sage Weil [Fri, 24 Oct 2014 20:20:43 +0000 (13:20 -0700)]
Merge pull request #2799 from athanatos/wip-9480

Wip 9480

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2798 from athanatos/wip-9875
Sage Weil [Fri, 24 Oct 2014 19:55:05 +0000 (12:55 -0700)]
Merge pull request #2798 from athanatos/wip-9875

ReplicatedPG: writeout hit_set object with correct prior_version

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2789 from ceph/wip-rgw-explicit-reason
Sage Weil [Fri, 24 Oct 2014 18:35:06 +0000 (11:35 -0700)]
Merge pull request #2789 from ceph/wip-rgw-explicit-reason

rgw: send http status reason explicitly in fastcgi

10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Fri, 24 Oct 2014 18:19:39 +0000 (11:19 -0700)]
Merge remote-tracking branch 'gh/giant'

10 years agoRevert "Enforce cache size on read requests"
Sage Weil [Fri, 24 Oct 2014 18:19:35 +0000 (11:19 -0700)]
Revert "Enforce cache size on read requests"

This reverts commit 4fc9fffc494abedac0a9b1ce44706343f18466f1.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "osdc: Fix ObjectCounter::_readx perf counters"
Sage Weil [Fri, 24 Oct 2014 18:19:21 +0000 (11:19 -0700)]
Revert "osdc: Fix ObjectCounter::_readx perf counters"

This reverts commit 830373ef018a78c3fe9d1b9ade208249fe8ccc6a.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "osdc: Fix compiler warning"
Sage Weil [Fri, 24 Oct 2014 18:19:15 +0000 (11:19 -0700)]
Revert "osdc: Fix compiler warning"

This reverts commit cb290a117ae17961c9e43e5fe76bb3edb2ed7efa.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "rbd: ObjectCacher reads can hang when reading sparse files"
Sage Weil [Fri, 24 Oct 2014 18:16:36 +0000 (11:16 -0700)]
Revert "rbd: ObjectCacher reads can hang when reading sparse files"

This reverts commit cdb7675a21c9107e3596c90c2b1598def3c6899f.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "Fix read performance regression in ObjectCacher"
Sage Weil [Fri, 24 Oct 2014 18:16:25 +0000 (11:16 -0700)]
Revert "Fix read performance regression in ObjectCacher"

This reverts commit 65be257e9295619b960b49f6aa80ecdf8ea4d16a.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years ago.gitmodules: ignoring changes in rocksdb submodule
Federico Gimenez [Fri, 24 Oct 2014 06:46:50 +0000 (08:46 +0200)]
.gitmodules: ignoring changes in rocksdb submodule

Signed-off-by: Federico Gimenez <fgimenez@coit.es>
(cherry picked from commit 60eaeca4ddccc79b29b17ad433c6569cb2a89500)

10 years agoMerge pull request #2797 from ceph/wip-rbd-revert
Josh Durgin [Fri, 24 Oct 2014 18:12:29 +0000 (11:12 -0700)]
Merge pull request #2797 from ceph/wip-rbd-revert

rbd/objectcacher: revert recent changes for giant

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
10 years agoRevert "Enforce cache size on read requests" 2797/head
Sage Weil [Fri, 24 Oct 2014 18:06:16 +0000 (11:06 -0700)]
Revert "Enforce cache size on read requests"

This reverts commit 4fc9fffc494abedac0a9b1ce44706343f18466f1.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "rbd: ObjectCacher reads can hang when reading sparse files"
Sage Weil [Fri, 24 Oct 2014 18:06:08 +0000 (11:06 -0700)]
Revert "rbd: ObjectCacher reads can hang when reading sparse files"

This reverts commit cdb7675a21c9107e3596c90c2b1598def3c6899f.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoRevert "Fix read performance regression in ObjectCacher"
Sage Weil [Fri, 24 Oct 2014 18:05:53 +0000 (11:05 -0700)]
Revert "Fix read performance regression in ObjectCacher"

This reverts commit 65be257e9295619b960b49f6aa80ecdf8ea4d16a.

Too late for giant.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2768 from ceph/wip-msgr
Sage Weil [Fri, 24 Oct 2014 17:58:27 +0000 (10:58 -0700)]
Merge pull request #2768 from ceph/wip-msgr

msgr: merge AsyncMessenger

Lightly reviewed.  Won't impact build or runtime unless explicitly enabled with ms_type = async (or random).

10 years agoMerge pull request #2795 from ceph/wip-9873
David Zafman [Fri, 24 Oct 2014 17:49:32 +0000 (10:49 -0700)]
Merge pull request #2795 from ceph/wip-9873

objecter: fix tick_event shutdown race (9873)

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #2793 from dachary/wip-dead-code-lrc
Sage Weil [Fri, 24 Oct 2014 17:40:58 +0000 (10:40 -0700)]
Merge pull request #2793 from dachary/wip-dead-code-lrc

erasure-code: remove LRC dead code

10 years agoosdc/Objecter: fix tick_event handling in shutdown vs tick race 2795/head
Sage Weil [Fri, 24 Oct 2014 16:32:20 +0000 (09:32 -0700)]
osdc/Objecter: fix tick_event handling in shutdown vs tick race

If we fail to cancel the tick_event, we rely on tick() itself to clear
tick_event.  I'm not quite sure how we got this wrong in the previous
commit, but this boils down to two cases:

1) shutdown() successfully cancels the event and clears tick_event.  tick()
   never runs.  tick_event == NULL when we finish.
2) shutdown() fails to cancel the event because it has already started.  In
   this case tick itself is blocking (or about to block) waiting on the
   rlock.  When it does run it will clear tick_event itself, then see
   initiazed == 0 and exit without rescheduling.

Fixes: #9873
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocommon/Timer: recheck stopping before sleep if we dropped the lock
Sage Weil [Fri, 24 Oct 2014 16:20:41 +0000 (09:20 -0700)]
common/Timer: recheck stopping before sleep if we dropped the lock

If we have safe_callbacks==false, the stopping flag may have changed while
we were doing our callback. Recheck it and exit to avoid a deadlock on
shutdown.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: remove LRC dead code 2793/head
Loic Dachary [Fri, 24 Oct 2014 15:09:39 +0000 (08:09 -0700)]
erasure-code: remove LRC dead code

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2790 from fgimenez/git-ignore-src-rocksdb
Sage Weil [Fri, 24 Oct 2014 15:01:16 +0000 (08:01 -0700)]
Merge pull request #2790 from fgimenez/git-ignore-src-rocksdb

.gitmodules: ignoring changes in rocksdb submodule

10 years agoMerge pull request #2791 from majianpeng/fix1
Sage Weil [Fri, 24 Oct 2014 13:58:18 +0000 (06:58 -0700)]
Merge pull request #2791 from majianpeng/fix1

ECTransaction: Remove unused typedef.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoECTransaction: Remove unused typedef. 2791/head
Jianpeng Ma [Tue, 21 Oct 2014 03:56:07 +0000 (11:56 +0800)]
ECTransaction: Remove unused typedef.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
10 years ago.gitmodules: ignoring changes in rocksdb submodule 2790/head
Federico Gimenez [Fri, 24 Oct 2014 06:46:50 +0000 (08:46 +0200)]
.gitmodules: ignoring changes in rocksdb submodule

Signed-off-by: Federico Gimenez <fgimenez@coit.es>
10 years agoMerge pull request #2783 from xanpeng/patch-1
Sage Weil [Fri, 24 Oct 2014 00:59:56 +0000 (17:59 -0700)]
Merge pull request #2783 from xanpeng/patch-1

Remove unnecessary expressions about conf_journal_sz

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2787 from ceph/fix-fstat-mode
Sage Weil [Fri, 24 Oct 2014 00:57:02 +0000 (17:57 -0700)]
Merge pull request #2787 from ceph/fix-fstat-mode

java: fill in stat structure correctly

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2784 from xinxinsh/master
Sage Weil [Fri, 24 Oct 2014 00:54:56 +0000 (17:54 -0700)]
Merge pull request #2784 from xinxinsh/master

check rocksdb library when '--with-librocksdb' option is enabled

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorgw: send http status reason explicitly in fastcgi 2789/head
Yehuda Sadeh [Fri, 24 Oct 2014 00:39:42 +0000 (17:39 -0700)]
rgw: send http status reason explicitly in fastcgi

There are issues in certain versions of apache 2.4, where the reason is
not sent back. Instead, just provide the reason explicitly.

Backport: firefly, giant

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
10 years agoMerge remote-tracking branch 'gh/giant'
Sage Weil [Thu, 23 Oct 2014 23:44:45 +0000 (16:44 -0700)]
Merge remote-tracking branch 'gh/giant'

10 years agojava: fill in stat structure correctly 2787/head
Noah Watkins [Thu, 23 Oct 2014 20:22:52 +0000 (13:22 -0700)]
java: fill in stat structure correctly

Added stat filling helper function but only stat and lstat were updated.
This patch makes fstat use it. Crucially the fstat wasn't updating the
mode flags.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
10 years agoMerge pull request #2785 from athanatos/wip-9821
Sage Weil [Thu, 23 Oct 2014 20:45:26 +0000 (13:45 -0700)]
Merge pull request #2785 from athanatos/wip-9821

PG:: reset_interval_flush and in set_last_peering_reset

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2733 from dachary/wip-9372-injectargs
Dan Mick [Thu, 23 Oct 2014 19:32:37 +0000 (12:32 -0700)]
Merge pull request #2733 from dachary/wip-9372-injectargs

cli: do not parse injectargs arguments twice

Reviewed-by: Dan Mick <dan.mick@inktank.com>
10 years agoMerge pull request #2759 from dachary/wip-9836-test-mon-id
Loic Dachary [Thu, 23 Oct 2014 18:29:26 +0000 (11:29 -0700)]
Merge pull request #2759 from dachary/wip-9836-test-mon-id

tests: mon id is incorrectly skipped

10 years agoMerge pull request #2766 from dachary/wip-9408-buffer-alignment-giant
Samuel Just [Thu, 23 Oct 2014 16:52:00 +0000 (09:52 -0700)]
Merge pull request #2766 from dachary/wip-9408-buffer-alignment-giant

erasure-code: buffer alignment (giant)

Reviewed-by: Samuel Just <sam.just@inktank.com>
10 years agoReplicatedPG: writeout hit_set object with correct prior_version 2798/head
Samuel Just [Thu, 23 Oct 2014 16:11:28 +0000 (09:11 -0700)]
ReplicatedPG: writeout hit_set object with correct prior_version

Fixes: #9875
Backport: giant, firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>