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

Small fdp fixes #1791

Merged
merged 3 commits into from
Jul 17, 2024
Merged

Small fdp fixes #1791

merged 3 commits into from
Jul 17, 2024

Conversation

ankit-sam
Copy link
Contributor

This series has 3 patches

  1. Removing FDP_MAX_RUHS, as now we are fetching all the ruhs reported by the device, and then parsing the ones requested as per the placement ID indices.
  2. log_info to log_err for all the error messages.
  3. Incrementing FIO_IOOPS_VERSION, for any external ioengine which may be using fdp_fetch_ruhs.

Earlier fio used to have different limits on the max number of data
placement ID indices which user can pass, and the max number of ruhs
which can be stored. As during initialization we now fetch all the ruhs
from the device and then allocate buffer for the requested ones, there
is no need for FDP_MAX_RUHS.

Add missing error message if incorrect placement ID index is specified.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
For fdp backend the way ruhs are fetched has been changed.
Earlier fdp_fetch_ruhs was called once with a buffer that can store
ruhs upto FDP_MAX_RUHS. The new fdp_fetch_ruhs is called twice. The
first call doesn't have any buffer for ruhs, and is only to get the
number of ruhs reported by the device. The second call has the buffer
that can store all the ruhs.

This impacts any external ioengines, so bump up FIO_IOOPS_VERSION.

Fixes: commit 56d1224 (dataplacement: update ruh info initialization)

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
@vincentkfu
Copy link
Collaborator

Looks good. Thanks.

@axboe axboe merged commit c63e865 into axboe:master Jul 17, 2024
10 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.

3 participants