Page MenuHomeFreeBSD

The old thread priority must be stored as part of the EPOCH(9) tracker.
ClosedPublic

Authored by hselasky on May 21 2021, 9:29 AM.
Tags
None
Referenced Files
F106105757: D30375.diff
Wed, Dec 25, 12:07 PM
Unknown Object (File)
Tue, Dec 24, 7:24 PM
Unknown Object (File)
Tue, Dec 24, 11:43 AM
Unknown Object (File)
Nov 13 2024, 8:40 PM
Unknown Object (File)
Nov 12 2024, 2:26 AM
Unknown Object (File)
Nov 3 2024, 4:14 AM
Unknown Object (File)
Oct 27 2024, 11:50 AM
Unknown Object (File)
Oct 5 2024, 3:36 PM
Subscribers
None

Details

Summary

Else recursive use of EPOCH(9) may cause the wrong priority to be restored.

MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

hselasky created this revision.
hselasky added a reviewer: kib.

Added patch context.

I forgot that I wrote this, which does priority propagation properly: https://reviews.freebsd.org/D24622

I will try to revisit it shortly. I think this change is ok in the meantime.

sys/sys/param.h
79

Because of the removal of a field from struct thread? In this case the change should not be MFCed. In practice it doesn't matter because the layout will not change due to alignment constraints. There will be some pad bytes between td_base_user_pri and td_rb_list. So in fact __FreeBSD_version does not need to be bumped at all.

I forgot that I wrote this, which does priority propagation properly: https://reviews.freebsd.org/D24622

I will try to revisit it shortly. I think this change is ok in the meantime.

Looks good. I'll have a closer look over the weekend.

--HPS

sys/sys/param.h
79

What about the change in the epoch tracker?

Ignore my last comment. Patch must be AS-IS. Will someone approve it?

markj added inline comments.
sys/sys/param.h
79

I forgot about this. In that case the change should not be MFCed.

This revision is now accepted and ready to land.May 22 2021, 2:51 PM
hselasky added inline comments.
sys/sys/param.h
79

Yes, I'll handle that.