Skip to content

Mutex: include address in name - #177

Closed
jdurgin wants to merge 324 commits into
nextfrom
wip-4595
Closed

jdurgin wants to merge 324 commits into
nextfrom
wip-4595

Conversation

@jdurgin

@jdurgin jdurgin commented Apr 1, 2013

Copy link
Copy Markdown
Member

This way lockdep can track individual locks more accurately,
instead of treating all instances of the same usage of lock
as the same lock.

Signed-off-by: Josh Durgin [email protected]

Sage Weil and others added 30 commits March 22, 2013 10:06
Introducing a new way to define the json structure of an
object, similar to what we do with bufferlist encode/decode.

Signed-off-by: Yehuda Sadeh <[email protected]>
RGWUserInfo can be decoded using json_decode, and fix
the ->dump() method to match that decoding.

Signed-off-by: Yehuda Sadeh <[email protected]>
Now testing json_decode functionality.

Signed-off-by: Yehuda Sadeh <[email protected]>
dump() just dumps the internal content of an object, encode_json()
create the object inside its own section. Note that there are cases
where we don't want an object to be surrounded by a section, e.g.,
when an object represents an array. In such a case we'd need to
override the encode_json() for this object type.

Signed-off-by: Yehuda Sadeh <[email protected]>
Old cluster definition is what we'd call zone from now on.

Signed-off-by: Yehuda Sadeh <[email protected]>
test: add ceph_rename test

Reviewed-by: Sage Weil <[email protected]>
Also rename RadosParams to ZoneParams

Signed-off-by: Yehuda Sadeh <[email protected]>
Allow an existing bucket to get linked from a new position in the tree.

Signed-off-by: Sage Weil <[email protected]>
If we are adding an item, ensure it cannot form a loop in the tree/map/
DAG.

Signed-off-by: Sage Weil <[email protected]>
Allow a second reference to an existing bucket to be added.  This lets
you create a DAG instead of a tree using the CLI.

Signed-off-by: Sage Weil <[email protected]>
Remove only instances of item nested beneath a particular ancestor.

Signed-off-by: Sage Weil <[email protected]>
Remove only instances of the item underneath a particular ancestor.

Signed-off-by: Sage Weil <[email protected]>
The find_roots() was looking for nodes referenced by 'take', but those
aren't necessarily roots, which is what the callers actually want.

Rename to find_takes() and add a real find_roots().  Not very efficient,
but we don't care.

Signed-off-by: Sage Weil <[email protected]>
No reason to limit this to leaves.

Signed-off-by: Sage Weil <[email protected]>
This is (I think) the last missing piece to let you construct an entire
map via the CLI.  The add/set commands will construct intervening ancestor
nodes provide there is an existing ancestor to stick them under, but this
is needed to create the initial root node.

Signed-off-by: Sage Weil <[email protected]>
Remove the bucket if there are no references left.

Remove the name from the map even if it is a bucket (not sure why that
condition was there in the first place!).

Signed-off-by: Sage Weil <[email protected]>
Make an 'unlink' mode of remove that will remove a link to a bucket but
not remove the bucket itself.  This refactors remove_item[_under] and moves
some of the checks into common helpers where they are not duplicated.  Fix
callers to pass the extra arg.

Signed-off-by: Sage Weil <[email protected]>
Note if the cluster is degraded.  If so, indicate specifically which MDSs
are degraded and what state they are in.

Signed-off-by: Sage Weil <[email protected]>
Make sure that rename fails with the ENOENT
if the source path doesn't exist.

Signed-off-by: Sam Lang <[email protected]>
Yan, Zheng and others added 19 commits April 1, 2013 09:26
Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
The comment says that if the importer is dead, bystanders thinks the
exporter is the only auth, as per mdcache->handle_mds_failure(). But
there is no such code in MDCache::handle_mds_failure().

Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
So bystanders know the subtree is single auth earlier.

Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
open_remote_ino is racy, it's possible someone deletes the inode's
last linkage while the MDS is discovering the inode.

Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
This avoids sending superfluous scatterlock state to recovering MDS

Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
When table server is recovering, it re-sends 'agree' messages for
prepared table updates. It is possible table client receives an
'agree' messages before it commits the corresponding update. Don't
send 'rollback' message back to the server in this case.

Signed-off-by: Yan, Zheng <[email protected]>
Reviewed-by: Greg Farnum <[email protected]>
We've changed quite a lot of the restart behavior, as well as one
of the message encodings. This is cheaper and easier than using feature bits,
and CephFS is still a tech preview or whatever, so let's cover them using this.

Signed-off-by: Greg Farnum <[email protected]>
rbd incremental backup/restore

Reviewed-by: Josh Durgin <[email protected]>
This way lockdep can track individual locks more accurately,
instead of treating all instances of AioCompletion the same.

This is required in this case because an AioCompletion is used by
normal I/O, and also by aio_flush(). AioCompletions for flushes don't
reperesent outstanding I/O, so they are used differently. Thus,
locking for aio_flush() completions is different. Without this change,
lockdep would erroneously think that an aio_flush() completion lock
was the same as an I/O completion lock, and hit an assert when an
aio_flush() completion was called from an aio_write() completion.

Signed-off-by: Josh Durgin <[email protected]>
@liewegas liewegas closed this Apr 2, 2013
@liewegas
liewegas deleted the wip-4595 branch April 2, 2013 00:45
liewegas pushed a commit that referenced this pull request Dec 14, 2016
Wip 9691 - (stable giant releases upgrades suite)
liewegas pushed a commit that referenced this pull request Dec 14, 2016
use create-initial for deploying monitors
theanalyst pushed a commit to theanalyst/ceph that referenced this pull request Mar 5, 2018
tools/crushtool: skip device id if no name exists
liewegas pushed a commit to liewegas/ceph that referenced this pull request Nov 5, 2021
…1-06-15

doc/cephio: adding stack.png to discover -> tech
irq0 pushed a commit to irq0/ceph that referenced this pull request Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.