Skip to content

Refactor bio inline vector access for the latest RHEL 10.3 compatibility#434

Merged
C2Redhat merged 1 commit intodm-vdo:8.3from
C2Redhat:fixRHEL10-8.3
Mar 26, 2026
Merged

Refactor bio inline vector access for the latest RHEL 10.3 compatibility#434
C2Redhat merged 1 commit intodm-vdo:8.3from
C2Redhat:fixRHEL10-8.3

Conversation

@C2Redhat
Copy link
Copy Markdown
Member

This PR introduces the bio_inline_vecs macro and refactors existing instances of bio->bi_io_vec to utilize this interface.

The bio_inline_vecs interface was originally introduced in the upstream 6.18 kernel and has officially been backported to RHEL 10.3. This update ensures our driver remains compatible with the backported block layer changes in the RHEL latest 10.3 release.

Please refer to commit ea0f08e and d52ee0b previous request.

Copy link
Copy Markdown
Member

@lorelei-sakai lorelei-sakai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes look correct, so that part's good.

For the commit message, when I mentioned referring to the older commits, I was looking for a reference to commit 4f35ffb, the one that added this same code to the main branch. Or better yet, a reference to PR 339, the PR that includes that commit. (I ended up looking them up myself with 'git blame').

The commit messages you do cite only change the #ifdefs, so they're not useful in understanding this change.

Also, I would use a different word than 'refactor' here. To me at least, 'refactoring' means changing the code in such a way that the functionality doesn't change. The last sentence of the commit message is good.

You could say something like "Update 8.3 branch to be compatible with backported kernel changes", or "Merge to RHEL 10 branch".

This PR introduces the bio_inline_vecs macro and update existing instances
of bio->bi_io_vec to utilize this interface.

The bio_inline_vecs interface was originally introduced in the upstream 6.18
kernel and has officially been backported to RHEL 10.3. This update ensures
our driver remains compatible with the backported block layer changes
in the RHEL latest 10.3 release.

Please refer to commit 4f35ffb or
dm-vdo#339.

Signed-off-by: Chung Chung <cchung@redhat.com>
Copy link
Copy Markdown
Member

@lorelei-sakai lorelei-sakai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for updating. This looks good.

You should also update the PR description to match the changes in the commit message, but that doesn't block merging so I'll approve this.

@C2Redhat C2Redhat merged commit e1cafe7 into dm-vdo:8.3 Mar 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants