Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-83714: Check for struct statx.stx_atomic_write_unit_max_opt in configure#140185
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlledby the STATX_WRITE_ATOMIC mask bit added in Linux 6.11. That's safe atruntime because all kernels clear the reserved space in struct statx andzero is a valid value for stx_atomic_write_unit_max_opt, and it avoidsallocating another mask bit, which are a limited resource. But it alsomeans the kernel headers don't provide a way to check whetherstx_atomic_write_unit_max_opt exists, so add a configure check.
jbosboom commentedOct 16, 2025
!buildbot AMD64 CentOS9 NoGIL 3.x |
bedevere-bot commentedOct 16, 2025
You don't have write permissions to trigger a build |
jbosboom commentedOct 16, 2025
#139178 failed on the AMD64 CentOS9 NoGIL 3.x (tier-1), ARM64 Raspbian Debug 3.x (tier-3) and ARM Raspbian 3.x (tier-3) buildbots. I need someone with the appropriate permissions to run those before merging. This should be skip-news. |
cmaloney left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This seems like a reasonable approach to me; a core dev can trigger the bots to validate (although the queue can take a while to get to the top of).
I think skip news works as this is falls under "If a change is a fix (or other adjustment) to an earlier unreleased change and the original NEWS entry remains valid, then no additional entry is needed."
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
1 similar comment
encukou commentedOct 16, 2025
!buildbot AMD64.CentOS9.NoGIL |
bedevere-bot commentedOct 16, 2025
🤖 New build scheduled with the buildbot fleet by@encukou for commit37ebb56 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140185%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
vstinner left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM, but let me check on buildbots.
vstinner commentedOct 16, 2025
!buildbot Raspbian |
bedevere-bot commentedOct 16, 2025
🤖 New build scheduled with the buildbot fleet by@vstinner for commit37ebb56 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140185%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
encukou commentedOct 16, 2025
Buildbot issues to expect:
|
vstinner commentedOct 16, 2025
Buildbots passed successfully:
Alright, AMD64 CentOS9 NoGIL Refleaks PR failed on an unrelated test: |
5a31024 intopython:mainUh oh!
There was an error while loading.Please reload this page.
vstinner commentedOct 16, 2025
Merged, thanks@jbosboom. |
…in configure (python#140185)stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlledby the STATX_WRITE_ATOMIC mask bit added in Linux 6.11. That's safe atruntime because all kernels clear the reserved space in struct statx andzero is a valid value for stx_atomic_write_unit_max_opt, and it avoidsallocating another mask bit, which are a limited resource. But it alsomeans the kernel headers don't provide a way to check whetherstx_atomic_write_unit_max_opt exists, so add a configure check.
Uh oh!
There was an error while loading.Please reload this page.
stx_atomic_write_unit_max_opt was added in Linux 6.16, but is controlled by the STATX_WRITE_ATOMIC mask bit added in Linux 6.11. That's safe at runtime because all kernels clear the reserved space in struct statx and zero is a valid value for stx_atomic_write_unit_max_opt, and it avoids allocating another mask bit, which are a limited resource. But it also means the kernel headers don't provide a way to check whether stx_atomic_write_unit_max_opt exists, so add a configure check.
I ran
make regen-configure. I know very little about autoconf, so please check I didn't mess up.📚 Documentation preview 📚:https://cpython-previews--140185.org.readthedocs.build/