Repository navigation
crimson/os/seastore: OP_CLONE in seastore - #51141
Conversation
014988e to
d6e6870
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
f1684e0 to
6726101
Compare
6726101 to
80510c7
Compare
There was a problem hiding this comment.
///< physical addr of mapping : should be physical addr or logic addr of mapping.
There was a problem hiding this comment.
better if (val.pladdr.is_paddr()) as other places use.
There was a problem hiding this comment.
in prepare_data_reservation already do object_data.update_reserved,right?
There was a problem hiding this comment.
clone_extent_ret clone_extent(
Transaction &t,
laddr_t hint,
laddr_t clone_offset,
extent_len_t len) { only 4 parameters, what P_ADDR_NULL mean here?
There was a problem hiding this comment.
Looks the commit "implement OP_CLONE" is inconsistent about TM::clone_extent()
There was a problem hiding this comment.
should be BtreeLBAManager::alloc_extent_ret .
|
could you add some explanation how indirect mapping relative to OP_CLONE? |
cyx1231st
left a comment
There was a problem hiding this comment.
Still looking, some outdated comments seem to be fixed in the followup commits.
An important goal to split a large PR into smaller commits is to make reviewers easier to consume the changes following the commit order, but back-and-forth fixes and inconsistent commit will make things harder and have to fallback to look at the PR as-a-whole.
Inclusive commits are also helpful to do inplace improvements to keep the commit history clean, so one can join the review at any time. Rebasing will also be easier.
However, this is generally a suggestion as it is somewhat subjective about whether the history is clean enough and reorganizing commits cost extra efforts.
There was a problem hiding this comment.
i->get_val().is_paddr() && i->get_val().pladdr.get_paddr().is_relative()
There was a problem hiding this comment.
Doesn't need to hold a reference for consistency:
Onode *dest_onode = nullptr; // The destination onode in case of clone.There was a problem hiding this comment.
ObjectDataHandler::clone hit invalid error
There was a problem hiding this comment.
Looks the commit "implement OP_CLONE" is inconsistent about TM::clone_extent()
Sorry, for this inconvenience, I'll try to merge fixes into original commits. |
0934b27 to
c1605a8
Compare
c1605a8 to
abf1f94
Compare
abf1f94 to
da363b4
Compare
|
Probably worth @athanatos's inputs as the changes to support clone are architectural. |
|
@myoungwon looks that cloning will also impact ObjectDataBlock in supporting deltas. |
cyx1231st
left a comment
There was a problem hiding this comment.
Generally looks good except for the comments!
Signed-off-by: Xuehan Xu <[email protected]>
61ed786 to
e40c05a
Compare
|
@cyx1231st All comments are addressed, please take a look again, thanks. |
cyx1231st
left a comment
There was a problem hiding this comment.
LGTM except for the comments below.
I think we finally need:
- TransactionManager level synthetic UT to verify that remap_pin/read_pin/clone_extent/alloc_extent are keeping working with each other.
- Early detection and failure when there is any attempt to mutate a shared (ref > 1) clone extent.
Might need @athanatos's approval.
Yeah, I'll add this later in a follow-up PR.
I don't quite follow, could you elaborate this point a little bit? |
This is currently an impossible case right now because we only clone ObjectDataBlock and it won't mutate. But @myoungwon has a proposal to introduce mutate & delta to ObjectDataBlock. And I guess we want to clone other extent types as well in the future. So I think it will be finally important to generally make sure that we won't mistakenly mutate a shared LogicalCachedExtent and expose the data corruption mistake as early as possible. Specifically, at the time of duplicate_for_write(). Is that reasonable? |
Yeah:-) |
Signed-off-by: Xuehan Xu <[email protected]>
…unt when getting lba mappings Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
… truncating objects to zero size Signed-off-by: Xuehan Xu <[email protected]>
… the moment of erase_onode Signed-off-by: xuxuehan <[email protected]>
mappings when removing indirect lba mappings Signed-off-by: Xuehan Xu <[email protected]>
…lba mappings if necessary when removing indirect lba mappings Signed-off-by: xuxuehan <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
mapping when remapping pins Signed-off-by: Xuehan Xu <[email protected]>
account when reading object data Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: xuxuehan <[email protected]>
e40c05a to
6a583aa
Compare
athanatos
left a comment
There was a problem hiding this comment.
I didn't look over it in much detail, but the interface changes look reasonable to me!
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 windows