Revision tags: v25.01-rc1, v24.09, v25.01-pre, v24.09-rc1 |
|
#
78a5ce29 |
| 10-Sep-2024 |
Slawomir Ptak <slawomir.ptak@intel.com> |
raid5f: data_chunk_idx uninitialized variable fix
Change-Id: I11f00e8249f3f64879e077266eabf037e5235a0f Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerr
raid5f: data_chunk_idx uninitialized variable fix
Change-Id: I11f00e8249f3f64879e077266eabf037e5235a0f Signed-off-by: Slawomir Ptak <slawomir.ptak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24864 Reviewed-by: Jim Harris <jim.harris@samsung.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
show more ...
|
#
86e763a4 |
| 26-Aug-2024 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid5f: fix buf_md undefined behavior
Only calculate buf_md offset if metadata is enabled.
Fixes: #3501
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: Ie917d33d71a2c9
ut/raid5f: fix buf_md undefined behavior
Only calculate buf_md offset if metadata is enabled.
Fixes: #3501
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: Ie917d33d71a2c91a46c81205d03ea0caf89187cf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24669 Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Michal Berger <michal.berger@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
Revision tags: v24.05, v24.09-pre, v24.05-rc1 |
|
#
1b9c5629 |
| 17-Apr-2024 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid: move the raid I/O wrappers back to the header
Instead of having these in bdev_raid.c, just make raid_bdev_remap_dix_reftag() public. This allows to have the unit tests a little simpler and bet
raid: move the raid I/O wrappers back to the header
Instead of having these in bdev_raid.c, just make raid_bdev_remap_dix_reftag() public. This allows to have the unit tests a little simpler and better reflecting the real behavior.
This effectively reverts 2c9dfc37c ("module/raid: Move the RAID I/O wrappers").
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: I92de84d7cbc233f5d744aedf6e77d0728ecdaa72 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22828 Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
fc3c9b37 |
| 12-Apr-2024 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid: make the common ut functions public
If a file including common.c doesn't use some of those functions it would cause a "defined but not used" warning.
Signed-off-by: Artur Paszkiewicz <artu
ut/raid: make the common ut functions public
If a file including common.c doesn't use some of those functions it would cause a "defined but not used" warning.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: I1bdd1375babd1b400e7ba03de5a2b1a5f0e26f15 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22775 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
#
0ebc1339 |
| 01-Feb-2024 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid: move blocklen_shift to r5f_info
This is not generally useful now but there is one case in raid5f where it is used to avoid a division, so move it there.
Signed-off-by: Artur Paszkiewicz <artu
raid: move blocklen_shift to r5f_info
This is not generally useful now but there is one case in raid5f where it is used to avoid a division, so move it there.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: I2662160e72a71b2bae499655fe4fb7d236fb766f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21684 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Mateusz Kozlowski <mateusz.kozlowski@solidigm.com> Community-CI: Mellanox Build Bot
show more ...
|
#
0830da33 |
| 01-Feb-2024 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid5f: interleaved md support
Also enable it in the unit tests.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: I2ee7aad32f79af7e8434771ada69308998ad152d Reviewed-on: htt
raid5f: interleaved md support
Also enable it in the unit tests.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: I2ee7aad32f79af7e8434771ada69308998ad152d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21683 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Mateusz Kozlowski <mateusz.kozlowski@solidigm.com> Community-CI: Mellanox Build Bot
show more ...
|
#
577058d6 |
| 01-Feb-2024 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid: allow testing interleaved md
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: If0dea0014723017d55181ec673903d097a01b427 Reviewed-on: https://review.spdk.io/gerrit/c
ut/raid: allow testing interleaved md
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: If0dea0014723017d55181ec673903d097a01b427 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21682 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <jim.harris@samsung.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
99537401 |
| 31-Jan-2024 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid: refactor setting test params
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: Ib06297159ebcb354da5198b9b0c4eeef087cde1c Reviewed-on: https://review.spdk.io/gerrit/c
ut/raid: refactor setting test params
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: Ib06297159ebcb354da5198b9b0c4eeef087cde1c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21681 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot
show more ...
|
Revision tags: LTS, v24.01, v24.05-pre, v24.01-rc1, v23.09, v24.01-pre, v23.09-rc1 |
|
#
549d907b |
| 20-Jun-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid5f: rebuild support
Change-Id: I311c3a6809f282993d5fd84dd6a95d798b63b353 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1
raid5f: rebuild support
Change-Id: I311c3a6809f282993d5fd84dd6a95d798b63b353 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18820 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <jim.harris@samsung.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
Revision tags: v23.05, v23.09-pre, v23.01.1 |
|
#
6e03e49b |
| 22-Mar-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
module/raid: make struct raid_bdev_io_channel private to bdev_raid
Define getters for accessing only the necessary raid_ch data from the raid modules.
Change-Id: I2622b0d219a3893ba3518b3c749695f6a1
module/raid: make struct raid_bdev_io_channel private to bdev_raid
Define getters for accessing only the necessary raid_ch data from the raid modules.
Change-Id: I2622b0d219a3893ba3518b3c749695f6a1e57857 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18736 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <jim.harris@samsung.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
a4e1703e |
| 01-Jun-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
module/raid: put relevant bdev_io data in raid_bdev_io
Everything the raid modules need will be in struct raid_bdev_io, they won't access spdk_bdev_io fields directly. This will simplify the raid mo
module/raid: put relevant bdev_io data in raid_bdev_io
Everything the raid modules need will be in struct raid_bdev_io, they won't access spdk_bdev_io fields directly. This will simplify the raid modules' code and expose only what's needed. It will also allow easier implementation of functionality like raid_io splitting (in the following patches), which needs to alter the io in some way.
Change-Id: I26abf6d3397109a15251d279926ad28d7ea22105 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18734 Reviewed-by: Jim Harris <jim.harris@samsung.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
59d79ec5 |
| 22-Mar-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid: factor out raid io channel create/destroy
Change-Id: If6259d9798ab5db64871047fce99a031a85a691e Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spd
ut/raid: factor out raid io channel create/destroy
Change-Id: If6259d9798ab5db64871047fce99a031a85a691e Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18712 Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
#
030dab89 |
| 22-Mar-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
module/raid: remove num_channels from raid_bdev_io_channel
This value is always equal to the number of base bdevs so just use that.
Change-Id: I6b6f2076c28b5f85f7ede212da048f594c54d6a9 Signed-off-b
module/raid: remove num_channels from raid_bdev_io_channel
This value is always equal to the number of base bdevs so just use that.
Change-Id: I6b6f2076c28b5f85f7ede212da048f594c54d6a9 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18711 Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <jim.harris@samsung.com>
show more ...
|
#
8e2e3f3c |
| 15-May-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid5f: validate io metadata
Change-Id: I394506638943ec5552ea8ca1c3655fd6b6913f46 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/
ut/raid5f: validate io metadata
Change-Id: I394506638943ec5552ea8ca1c3655fd6b6913f46 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18153 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
show more ...
|
#
8224738a |
| 15-May-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid5f: test io with more than one iovec
Change-Id: Id6ac3b25d8400afaa4d35957d5edd89e55041bbf Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/ge
ut/raid5f: test io with more than one iovec
Change-Id: Id6ac3b25d8400afaa4d35957d5edd89e55041bbf Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18152 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
cecb762b |
| 25-May-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid5f: degraded reads support
To handle a read of a chunk from a missing base bdev we must first read all the other chunks of this stripe and then xor the data.
Change-Id: I1af2ffc3fe1f41b798e15b5
raid5f: degraded reads support
To handle a read of a chunk from a missing base bdev we must first read all the other chunks of this stripe and then xor the data.
Change-Id: I1af2ffc3fe1f41b798e15b5194ab5695923737ef Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15270 Reviewed-by: Jim Harris <jim.harris@gmail.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
show more ...
|
#
8855fa7c |
| 25-May-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid5f: degraded writes support
For writes it is enough to simply skip the missing base bdev slot when submitting chunk writes. Also skip xor calculation if the parity chunk of the stripe is on the
raid5f: degraded writes support
For writes it is enough to simply skip the missing base bdev slot when submitting chunk writes. Also skip xor calculation if the parity chunk of the stripe is on the missing base bdev.
Change-Id: Ibbed2e9e0c0e9f98ce2cbaf1ad0da024299f1cfd Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18394 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
show more ...
|
#
ea941cae |
| 28-Jul-2023 |
Konrad Sztyber <konrad.sztyber@intel.com> |
test/unit: use spdk_ut_run_tests()
Replaced direct calls to the CUnit's functions to run the tests with spdk_ut_run_tests(). That way, each test will have the ability to run a specific test case.
test/unit: use spdk_ut_run_tests()
Replaced direct calls to the CUnit's functions to run the tests with spdk_ut_run_tests(). That way, each test will have the ability to run a specific test case.
The blob.c unit test wasn't changed, because it runs all tests multiple times with different parameter combinations, so it cannot be easily converted. In the future, each such combination could be split into a separate test suite, which would make it compatible with spdk_ut_run_tests().
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I4463f808f89844e9bf32b5b31eda197c5d729d1d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19288 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
ae431e31 |
| 28-Jul-2023 |
Konrad Sztyber <konrad.sztyber@intel.com> |
test/unit: move spdk_cunit.h to include/spdk_internal
It'll make it easier to include this file outside of unit tests.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I171ddb864
test/unit: move spdk_cunit.h to include/spdk_internal
It'll make it easier to include this file outside of unit tests.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I171ddb8649f67b5786f08647560e2907603d0574 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19284 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
show more ...
|
Revision tags: v23.01, v23.05-pre, v23.01-rc1, v22.01.2 |
|
#
f6cb43d3 |
| 06-Oct-2022 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid5f: stripe_request type
Add support for different types of stripe_requests. Put fields specific to a given type in an union. Initially, convert the existing stripe_request to "write" type.
Chan
raid5f: stripe_request type
Add support for different types of stripe_requests. Put fields specific to a given type in an union. Initially, convert the existing stripe_request to "write" type.
Change-Id: I014dd5045438ad344117080eeb9a5450f011bf7d Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18391 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
show more ...
|
#
8d1993a5 |
| 23-May-2023 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
module/raid: remove bdev pointer from base_bdev_info
There is a spdk_bdev_desc pointer in base_bdev_info, which is always set together with the bdev pointer, so use that instead. It makes checking w
module/raid: remove bdev pointer from base_bdev_info
There is a spdk_bdev_desc pointer in base_bdev_info, which is always set together with the bdev pointer, so use that instead. It makes checking whether a base bdev is present more consistent. Before, in some places the bdev pointer was checked and in others the desc pointer.
Change-Id: I5ac305b7d4b07c609b759a59f7f0fa540532ea1e Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18286 Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
show more ...
|
#
18ba317c |
| 24-Oct-2022 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid5f: assume raid_io_info is always one stripe
Support for multi-stripe requests is not used anymore so remove it.
Change-Id: I8f28817763452674c8a183c640800f3a4b4b3653 Signed-off-by: Artur Pas
ut/raid5f: assume raid_io_info is always one stripe
Support for multi-stripe requests is not used anymore so remove it.
Change-Id: I8f28817763452674c8a183c640800f3a4b4b3653 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15269 Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
show more ...
|
#
ca6d23e7 |
| 21-Oct-2022 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
ut/raid5f: simplify read tests
Remove struct test_request_conf and instead do some basic reads on each chunk. Also remove the io_info splitting because it is not used now.
Change-Id: I4b945b4059867
ut/raid5f: simplify read tests
Remove struct test_request_conf and instead do some basic reads on each chunk. Also remove the io_info splitting because it is not used now.
Change-Id: I4b945b40598670f6ab84fb8066278877fee7fb75 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15268 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
#
1219d86a |
| 05-Oct-2022 |
Artur Paszkiewicz <artur.paszkiewicz@intel.com> |
raid5f: convert to use accel framework for xor
Change-Id: Id8fb521549342564bcf4288d74337fb4dd41fa03 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io
raid5f: convert to use accel framework for xor
Change-Id: Id8fb521549342564bcf4288d74337fb4dd41fa03 Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16396 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Community-CI: Mellanox Build Bot
show more ...
|
#
55f94793 |
| 10-Feb-2023 |
Konrad Sztyber <konrad.sztyber@intel.com> |
bdev: remove spdk_bdev_ext_io_opts from spdk_bdev_io
The spdk_bdev_ext_io_opts structure is used to pass extra options when submitting a bdev IO request, without having to modify/add functions to ha
bdev: remove spdk_bdev_ext_io_opts from spdk_bdev_io
The spdk_bdev_ext_io_opts structure is used to pass extra options when submitting a bdev IO request, without having to modify/add functions to handle new options. Additionally, the structure has a size field to allow adding new fields without breaking the ABI (and thus having to bump up the major version of a library).
It is also a part of spdk_bdev_io and there are several reasons for removing it from that structure:
1. The size field only makes sense in structures that are passed through pointers. And spdk_bdev_ext_io_opts is indeed passed as a pointer to spdk_bdev_{readv,writev}_blocks_ext(), however it is also embedded in spdk_bdev_io (internal.ext_opts_copy), which is also part of the API. It means that each time a new field is added to spdk_bdev_ext_io_opts, the size of spdk_bdev_io will also change, so we will need to bump the major version of libspdk_bdev anyway, thus making spdk_bdev_ext_io_opts.size useless. 2. The size field also makes internal.ext_opts cumbersome to use, as each time one of its fields is accessed, we need to check the size. Currently the code doesn't do that, because all of the existing spdk_bdev_ext_io_opts fields were present when this structure was initially introduced, but we'd need to do check the size before accessing any new fields. 3. spdk_bdev_ext_io_opts has a metadata field, while spdk_bdev_io already has u.bdev.md_buf, which means that we store the same thing in several different places in spdk_bdev_io (u.bdev.md_buf, u.bdev.ext_opts->metadata, internal.ext_opts->metadata).
Therefore, this patch removes all references to spdk_bdev_ext_io_opts from spdk_bdev_io and replaces them with fields (memory_domain, memory_domain_ctx) that were missing in spdk_bdev_io. Unfortunately, this change breaks the API and requires changes in bdev modules that supported spdk_bdev_io.u.bdev.ext_opts.
Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I49b7524eb84d1d4d7f12b7ab025fec36da1ee01f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16773 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|