Repository navigation
crimson/os/seastore/lba_manager: do batch mapping allocs when remapping multiple mappings - #57818
Conversation
821f9ec to
38d771d
Compare
cyx1231st
left a comment
There was a problem hiding this comment.
Still looking.
Seems it is an intermediate step towards the direction to "iterate the lba-tree in one lookup to do update and insertions, or to do multiple removes".
In other words, I think when doing object data write (with the overwrite() implementations), the involved mappings (to update or insert) will be continuous.
If I'm correct above, the first commit of this PR (non-continuous mappings) will be finally deprecated, right?
If Actually, we are trying to take 2 steps towards this goal:
If the second step is not feasible, we have "batch-same-type-modify" ability at least. |
|
There's another use case for the At present, when doing clone/clone_range, we do two Meanwhile, OSDs' out-of-order recovery of clone objects also needs the |
|
Yeah, I think it's OK if the direction is aligned. (unrelated to this PR below)
Seems to me a dedicated "move_mappings" interface for user (ObjectDataHandler) might not be finally necessary, because it is always associated with a follow-up cloning. Probably the "LBA::clone_mappings" can hide&handle it internally when the "to-clone" mapping is direct. Merging "move_mappings" into "clone_mappings" also enables the optimization to directly set the ref-counter to 2 without another iteration of lookups. Still, it should be fine to be in another step.
Ack, makes sense. |
Yeah, we'll try to merge it into
|
4583da2 to
9aa93ce
Compare
9aa93ce to
5ddf098
Compare
cyx1231st
left a comment
There was a problem hiding this comment.
Suggest some semantic revises, the implementation looks good.
non-continuous extents as long as it doesn't violate the order of lba keys Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
5ddf098 to
28efb51
Compare
|
All done. |
|
jenkins retest this please |
|
jenkins test windows |
Signed-off-by: Xuehan Xu [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e