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

prov/verbs: Always return vrb_prov in VERBS_INI #10795

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

j-xiong
Copy link
Contributor

@j-xiong j-xiong commented Feb 19, 2025

Previously NULL was returned if vrb_os_ini() failed. This mainly affected Windows because the function would always succeed on Linux. On Windows, the function would fail if the ND driver failed to initialize.

Returning NULL from VEBRS_INI prevents fi_getinfo() from working as expecetd when the FI_PROV_ATTR_ONLY flags is used. This patch moves the vrb_os_ini() check to vrb_init_info() which is invoked when fi_getinfo() is called the first time.

Similar to #10794

Previously NULL was returned if vrb_os_ini() failed. This mainly affected
Windows because the function would always succeed on Linux. On Windows,
the function would fail if the ND driver failed to initialize.

Returning NULL from VEBRS_INI prevents fi_getinfo() from working as
expecetd when the FI_PROV_ATTR_ONLY flags is used. This patch moves the
vrb_os_ini() check to vrb_init_info() which is invoked when fi_getinfo()
is called the first time.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
@j-xiong j-xiong requested a review from shijin-aws February 19, 2025 02:11
@j-xiong j-xiong merged commit 8bac96a into ofiwg:main Feb 19, 2025
13 checks passed
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.

2 participants