Skip to content

Conversation

@dsharma-dc
Copy link
Collaborator

max write size calculation need to account aligned length and the blocklen with metadata as done via bdev_get_max_write. This otherwise fails during bdev_io_get_buf for bounce buffer where max length returned by bdev_io_get_max_buf_len breaches the iobuf_large length.

Change-Id: I0e2ee2cfa80f0617f8b1379315b9dba2459d2c71

Note

The corresponding fix on upstream SPDK is approved here: https://review.spdk.io/c/spdk/spdk/+/25665
The merge there might take time and hence cherry-picked locally from that branch already.

max write size calculation need to account aligned length and the
blocklen with metadata as done via bdev_get_max_write. This otherwise
fails during bdev_io_get_buf for bounce buffer where max length
returned by bdev_io_get_max_buf_len breaches the iobuf_large length.

Change-Id: I0e2ee2cfa80f0617f8b1379315b9dba2459d2c71
Signed-off-by: Diwakar Sharma <[email protected]>
@dsharma-dc dsharma-dc merged commit 4e0d622 into v24.05.x-mayastor Mar 5, 2025
4 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.

4 participants