Skip to content

Fix file_open_ipc_handle() of file provider - producer and consumer should use two different files #830

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

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented Oct 23, 2024

Description

Fix file_open_ipc_handle() of file provider - producer and consumer should use two different files,
because two separate processes cannot use the same range of memory for memory allocations.
The same range of memory can be used only for IPC purposes.

  1. Fix file_open_ipc_handle().
    Remove a wrong check - the paths:
    file_ipc_data->path and file_provider->path
    should be different.

  2. Fix ipc_file_prov test: should use two different files
    Fix ipc_file_prov test: producer and consumer
    should use two different files.

  3. Fix ipc_file_prov_fsdax test: should use two different files
    Fix ipc_file_prov_fsdax test: producer and consumer
    should use two different FSDAX files.

  4. Add UMF_TESTS_FSDAX_PATH_2 to CI

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@ldorau ldorau requested a review from a team as a code owner October 23, 2024 09:31
@ldorau ldorau changed the title Fix file provider tests - they should use two different files Fix file_open_ipc_handle() of file provider - producer and consumer should use two different files Oct 23, 2024
@ldorau ldorau force-pushed the Fix_file_provider_tests_-_should_use_two_different_files branch from fec52e4 to 76f44d4 Compare October 23, 2024 09:53
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

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

can you please describe why, not only what? 😉 at least in the PR description

Is it enough?

Fix file_open_ipc_handle() of file provider - producer and consumer should use two different files,
because two separate processes cannot use the same range of memory for memory allocations.
The same range of memory can be used only for IPC purposes.

Remove the wrong check - the paths:
file_ipc_data->path and file_provider->path
should be different.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Fix ipc_file_prov test: producer and consumer
should use two different files.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Fix ipc_file_prov_fsdax test: producer and consumer
should use two different FSDAX files.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
@ldorau ldorau force-pushed the Fix_file_provider_tests_-_should_use_two_different_files branch from 76f44d4 to ddab0e6 Compare October 23, 2024 10:10
@lukaszstolarczuk lukaszstolarczuk merged commit 80e55db into oneapi-src:main Oct 23, 2024
75 checks passed
@ldorau ldorau deleted the Fix_file_provider_tests_-_should_use_two_different_files branch October 23, 2024 12:02
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.

4 participants