Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfs: Fix incorrect engine registering for '--enghelp' list #1659

Merged
merged 1 commit into from
Oct 25, 2023
Merged

nfs: Fix incorrect engine registering for '--enghelp' list #1659

merged 1 commit into from
Oct 25, 2023

Conversation

vt-alt
Copy link
Contributor

@vt-alt vt-alt commented Oct 25, 2023

ioengine from nfs (internal) engine is incorrectly exported thus overriding its value in constructor callbacks of other external engines, that are used for registering engine for listing with --enghelp.

Because flist is unsafe to double adding it also making engine_list to become corrupt and causing infinite loop or abnormal list termination when printing engine list.

Issue: #1655
Fixes: 9326926 ("NFS engine")


It seems that ioengine for internal engines should not be exported and should be always static.

The change is tested downstream on ALT Linux.

`ioengine` from `nfs` (internal) engine is incorrectly exported thus
overriding its value in constructor callbacks of other external engines,
that are used for registering engine for listing with `--enghelp`.

Because flist is unsafe to double adding it also making `engine_list` to
become corrupt and causing infinite loop or abnormal list termination
when printing engine list.

Issue: #1655
Fixes: 9326926 ("NFS engine")
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
@axboe axboe merged commit 7a725c7 into axboe:master Oct 25, 2023
10 checks passed
@vincentkfu
Copy link
Collaborator

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants