Jason Dillaman
913339f75f
librbd: update exclusive lock state when shutting down
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 14:15:10 -05:00
Jason Dillaman
200d310635
librbd: extra request required if journal enabled w/ caching
...
Fixes : #14108
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 13:14:58 -05:00
Jason Dillaman
bab16bbbeb
librbd: stop the copyup thread during shutdown
...
Fixes : #14107 , #14108
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-18 13:09:02 -05:00
Sage Weil
91bf56e26b
Merge remote-tracking branch 'gh/jewel'
2015-12-16 10:48:15 -05:00
Sage Weil
4fc410280c
Merge pull request #6932 from aiicore/test_fix
...
tests: allow object corpus readable test to skip specific incompat instances
Reviewed-by: Sage Weil <sage@redhat.com>
2015-12-16 08:46:50 -05:00
Yan, Zheng
db8bf2dcea
Merge pull request #6941 from jcsp/wip-14029
...
mds: fix setvxattr (broken in a536d114
)
2015-12-16 19:55:40 +08:00
David Zafman
1d7b53f42f
Merge pull request #6948 from ceph/revert-6939-bp-remove-bz2dev
...
Revert "makefiles: remove bz2-dev from dependencies"
Reviewed-by: Dan Mick <dmick@redhat.com>
2015-12-15 17:47:01 -08:00
Samuel Just
35542eb6ed
Revert "makefiles: remove bz2-dev from dependencies"
2015-12-15 15:12:19 -08:00
Ken Dreyer
ff9712b249
Merge pull request #6692 from SUSE/wip-13860
...
ceph.spec.in: add BuildRequires: systemd
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-12-15 08:28:06 -07:00
Kefu Chai
34ceddf026
Merge pull request #6939 from branch-predictor/bp-remove-bz2dev
...
makefiles: remove bz2-dev from dependencies
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-12-15 22:43:27 +08:00
Loic Dachary
09c57ff521
Merge pull request #6943 from smithfarm/wip-doc-dev-typo
...
doc: fix typo in developer guide
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-15 15:33:21 +01:00
Nathan Cutler
fec545839c
doc: fix typo in developer guide
...
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-15 15:25:45 +01:00
John Spray
d465830115
mds: fix setvxattr (broken in a536d114
)
...
There was an accidental move of this line
when adding the MAY_SET_POOL check, which
was causing setxattr to proceed before
it had the right locks, and thereby apply
its checks on bad data (symptom was failing
to detect that the file had data written to it).
Fixes : #14029
Signed-off-by: John Spray <john.spray@redhat.com>
2015-12-15 13:22:23 +00:00
John Spray
d278134232
Merge pull request #6821 from H3C/wip-cephfs-f11322
...
ceph-fuse: add process to ceph-fuse --help
Reviewed-by: John Spray <john.spray@redhat.com>
2015-12-15 13:15:43 +00:00
Piotr Dałek
a8b5920259
makefiles: remove bz2-dev from dependencies
...
The only thing that uses bzip2-devel is RocksDB, and it's optional, not
requirement. Drop the bzip2-devel/libbz2-dev dependency entirely, and
let RocksDB use it only if it is already present.
Fixes : #13981
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-12-15 14:01:51 +01:00
Wei Feng
9409e96aed
ceph-fuse: add process to ceph-fuse --help
...
Signed-off-by: Wei Feng <feng.wei@h3c.com>
2015-12-15 07:45:07 -05:00
Loic Dachary
736532cac9
Merge pull request #6934 from smithfarm/wip-14070
...
doc: Update list of admin/build-doc dependencies
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-15 13:24:47 +01:00
Nathan Cutler
eadc771d27
doc: Update list of admin/build-doc dependencies
...
http://tracker.ceph.com/issues/14070 Fixes : #14070
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-12-15 12:41:29 +01:00
Igor Podoski
8d68d0237c
test/encoding/readable.sh: add non-whole type skip
...
With this modification there will be possibility to skip only one/few
object/s of particular type, not whole type as it was before.
Before:
- To skip whole TYPE create file named TYPE in forward_incompat
directory.
Now:
- To skip whole TYPE create file or empty directory named TYPE in
forward_incompat directory.
- To skip one/few object/s of TYPE create directory named TYPE in
forward_incompat and put into symbolic links to objects that
you wantt to skip.
Signed-off-by: Igor Podoski <igor.podoski@ts.fujitsu.com>
2015-12-15 12:08:17 +01:00
Loic Dachary
9c34d0c4e4
Merge pull request #6910 from dachary/wip-dev-guide-ceph-qa-suite
...
doc: dev: introduction to tests
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2015-12-15 11:21:51 +01:00
Loic Dachary
575d2380af
Merge pull request #6927 from tchaikov/wip-fix-ftbfs
...
rgw: fix the build failure
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-12-15 08:52:51 +01:00
Kefu Chai
34a6c2aeae
rgw: remove unused variable
...
to fix the compiler warning of
rgw/rgw_formats.cc: In member function 'virtual void
RGWFormatter_Plain::dump_format_va(const char*, const char*, bool, const
char*, __va_list_tag*)':
rgw/rgw_formats.cc:143:15: warning: unused variable 'format'
[-Wunused-variable]
const char *format;
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-12-15 14:46:16 +08:00
Kefu Chai
a57784f75f
rgw: fix the build failure
...
* s/bucket_name_str/bucket_name/
* the member variable name of `req_state` was changed to `bucket_name`
in f7ca00a
. but some commits was still using the old name before the
commit got merged.
* fixes for the tenant related change
* also fixes a typo
Signed-off-by: Kefu Chai <kchai@redhat.com>
2015-12-15 14:17:06 +08:00
Josh Durgin
265e18fc36
Merge pull request #6859 from dillaman/wip-librbd-async-refresh
...
librbd: image refresh code paths converted to async state machines
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-12-14 20:14:13 -08:00
Jason Dillaman
d2d4bb42d5
librbd: refresh object map after rollback
...
An image refresh will no longer trigger an automatic object map
reload, therefore explicitly reload the object map after rollback.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
db2d495cce
librbd: refresh image asynchronously from watch/notify path
...
The AIO path already ensures asynchronous image refreshes, but the
watch/notify path for maintenance ops was still using the sync refresh
path.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
16547c9b17
librbd: the journal state machine is now asynchronous
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
2a4aad5ffb
tests: adjust test cases to refactored librbd
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
7e3a032224
librbd: all object map methods are now async
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
8ef37b0259
librbd: IO ops will now asynchronously refresh the image if needed
...
This avoids blocking the AIO path with the previous synchronous
refresh path.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
01bc5156ef
WorkQueue: PointerWQ now supports out-of-band processing
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
18f4f69f20
librbd: flush all in-flight IO on block write and shut down
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
bad4641547
librbd: add shut down support to the AIO work queue
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
f1973b1d94
librbd: integrate new async image state machines
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
8740ddf0f7
librbd: ImageWatcher should release lock upon request
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
c00b28b017
librbd: implement image state tracker for open/close/refresh/etc
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
3fd24eb2cd
librbd: rename ImageRefresh to ImageState
...
This class handles more than just refreshing the image from
disk.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
1673332353
librbd: object map lifespan now controlled by state machines
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
ccdeb15157
librbd: decouple ImageWatcher from exclusive lock management
...
Use new ExclusiveLock state machine to handle all the proper
transitions between lock states.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
6e1718c758
librbd: separate image refresh into async state machines
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
22eb25bc20
tests: exclusive lock state machines test cases
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
8aabb8cbc3
librbd: separate exclusive lock handling into async state machines
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:31:31 -05:00
Jason Dillaman
03b79abd12
librados_test_stub: additional definitions and mock functions
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00
Jason Dillaman
19127742ac
tests: mock test cases for new async object map lock/unlock/refresh ops
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00
Jason Dillaman
7248b93c54
librbd: async object map lock/unlock/refresh state machines
...
Creating async versions to support an async image refresh
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00
Jason Dillaman
700a0def53
librados_test_stub: additional mocked IoCtx methods
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00
Jason Dillaman
dd253af868
librbd: convert object_map::InvalidateRequest to template
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00
Jason Dillaman
8a4c1558d2
librbd: support updated async cls_rbd API
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00
Jason Dillaman
fc4370ea85
cls_rbd: async version of class helpers added
...
New async versions of get_id, get_immutable_metadata,
get_mutable_metadata, get_flags, get_stripe_unit_count,
snapshot_list, and old_snapshot_list. These are needed
by the new librbd async ImageCtx op state machines.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00
Jason Dillaman
e2eb27fb9e
librbd: fix missing header dependencies for parent_types.h
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-12-14 20:30:51 -05:00