Repository navigation
crimson/os/seastore: avoid getting wrong logical extents through "parent-invalid" lba mappings - #57709
Conversation
296174f to
abb141d
Compare
|
jenkins test make check |
|
jenkins test api |
|
jenkins test make check |
|
jenkins test windows |
5f553d7 to
d338066
Compare
|
How about: Introduce a public method So that: Only after the "info" is attached to the
With @xxhdx1985126 Does it look reasonable? |
I'll give it a try:-) |
d338066 to
ef39510
Compare
|
I implemented another approach in which we don't have to touch Specifically, the main modifications are as follows:
WIth this approach, users of lba mappings, like ObjectDataHandler, OMapManager, OnodeManager, don't have to worry about the validity of the lba mappings anymore. Please take a look, thanks. |
2a19bff to
07918e5
Compare
07918e5 to
dea5d8d
Compare
dea5d8d to
c8dcd79
Compare
e75dd28 to
7c0d0c1
Compare
|
@cyx1231st All comments addressed, please take a look again, thanks:-) |
7c0d0c1 to
beafb15
Compare
|
@xxhdx1985126 Sorry I'm not following which comments have been addressed, the new change looks like a rebase to me, have you pushed a wrong branch? |
beafb15 to
7c0d0c1
Compare
Yes, sorry, I pushed the wrong branch, it's the right one now. |
cyx1231st
left a comment
There was a problem hiding this comment.
LGTM except for the below comments.
7c0d0c1 to
8d136a0
Compare
|
@cyx1231st All done, please take a look again, thanks. |
|
jenkins test make check |
cyx1231st
left a comment
There was a problem hiding this comment.
LGTM except one last comment.
accurate extent check Signed-off-by: Xuehan Xu <[email protected]>
…s are viewable to transactions Instead of searching the transaction's retired_set to determine whether an extent has been retired, we add the transaction that's retiring an extent to that extent's retired_transactions field and search that field to do the check. Since the probability of multiple transactions retiring the same extent is very low, this approach should be more cpu efficient. Signed-off-by: Xuehan Xu <[email protected]>
mappings following which logical extents are to be retrieved are valid Signed-off-by: Xuehan Xu <[email protected]>
Signed-off-by: Xuehan Xu <[email protected]>
parents have been modified Signed-off-by: Xuehan Xu <[email protected]>
logical extents through them Signed-off-by: Xuehan Xu <[email protected]>
detecting invalid lba mappings Signed-off-by: Xuehan Xu <[email protected]>
8d136a0 to
4ad6f86
Compare
|
I'll merge once the build approves. |
| trans_retired_extent_link_t(CachedExtentRef extent, transaction_id_t id) | ||
| : extent(extent), trans_view{id} | ||
| { | ||
| assert(extent->is_stable()); |
There was a problem hiding this comment.
Seems this line is failing, tracked by https://tracker.ceph.com/issues/66851
There was a problem hiding this comment.
Seems this line is failing, tracked by https://tracker.ceph.com/issues/66851
This is fixed by: #58357
The parent of an lba mapping may be modified after the mapping's retrieval, so we need to avoid getting extents through the mapping with an outdated view.
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