Repository navigation
crimson/os/seastore: cleanups around lba parent-child pointer - #56028
Conversation
Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
Distinguish caching vs absent get_extent interfaces, and misc related cleanups. After the lba parent-child pointer optimization, the absent path should be used. Signed-off-by: Yingxin Cheng <[email protected]>
There was a problem hiding this comment.
Looks is_initial_pending() is also possible here.
There was a problem hiding this comment.
Seems all kinds of valid extents are possible, parent/child link does apply to mutation-pending extents (#55831 (comment))
There was a problem hiding this comment.
Changed to is_valid() only.
There was a problem hiding this comment.
Looking at the callers of get_extent_viewable_by_trans(), seems to me that the extent can be mutation-pending only if it is root, so the invariant here could be:
assert(extent->is_root() ? extent->is_valid() : (extent->is_stable() || extent->is_initial_pending()));
e885bd9 to
cfc20e1
Compare
…valid Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
…n() asserts Signed-off-by: Yingxin Cheng <[email protected]>
cfc20e1 to
2d2df50
Compare
|
Looks passing the UTs, can you help review @xxhdx1985126 ? |
| * t *must not* have retired offset | ||
| * | ||
| * Note, the current implementation leverages parent-child | ||
| * pointers in LBA instead, so it should only be called in tests. |
There was a problem hiding this comment.
Not in this context, but I've thinking that, since we retrieve all extents through lba/backref trees, Cache::extents only serves as an extent holder instead of an extent index and may not be necessary of type ExtentIndex, it seems an intrusive list is enough, What do you think? This should avoid the unnecessary cpu overhead caused by inserting extent into Cache::extents.
There was a problem hiding this comment.
Not in this context.
Is it fine to keep this comment, or you suggest to modify in some way?
But I've thinking that, since we retrieve all extents through lba/backref trees, Cache::extents only serves as an extent holder instead of an extent index and may not be necessary of type ExtentIndex, it seems an intrusive list is enough, What do you think? This should avoid the unnecessary cpu overhead caused by inserting extent into Cache::extents.
This makes sense to me. Also refer to #47749 (comment) that I thought we should skip query_cache() in the non-test path.
There was a problem hiding this comment.
Not in this context.
Is it fine to keep this comment, or you suggest to modify in some way?
Ah, sorry, I meant what I was going to suggest was not in this context, not the comment in the code:-)
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