Skip to content

Conversation

@JordanYates
Copy link
Contributor

Explcitly zero the flags of the SQE obtained from rtio_sqe_acquire when the rtio_sqe_prep_* helpers aren't used (the helpers memset the entire struct to 0).

The flags must be reset to ensure the RTIO_SQE_TRANSACTION and RTIO_SQE_CHAINED are not retained from a previous SQE.

Explcitly zero the flags of the SQE obtained from `rtio_sqe_acquire`
when the `rtio_sqe_prep_*` helpers aren't used (the helpers memset the
entire struct to 0).

The flags must be reset to ensure the `RTIO_SQE_TRANSACTION` and
`RTIO_SQE_CHAINED` are not retained from a previous SQE.

Signed-off-by: Jordan Yates <jordan@embeint.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

@teburd
Copy link
Contributor

teburd commented Dec 3, 2025

I should zero this out in acquire instead probably but felt this added a cost since it was going to almost certainly be overwritten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants