Page MenuHomeFreeBSD

Make domainset iterators unsigned.
ClosedPublic

Authored by markj on Oct 1 2018, 3:52 PM.
Tags
None
Referenced Files
F82680002: D17374.diff
Wed, May 1, 1:54 PM
Unknown Object (File)
Dec 22 2023, 10:31 PM
Unknown Object (File)
Oct 31 2023, 8:58 AM
Unknown Object (File)
Sep 29 2023, 8:56 AM
Unknown Object (File)
Sep 15 2023, 6:03 PM
Unknown Object (File)
Sep 1 2023, 5:59 AM
Unknown Object (File)
Sep 1 2023, 5:58 AM
Unknown Object (File)
Sep 1 2023, 5:48 AM
Subscribers

Details

Summary

Otherwise iter % ds->ds_cnt will be negative once iter wraps around to a
negative number.

Test Plan

Peter found the problem while testing some other NUMA patches, one
of which adds a domainset iterator to each UMA keg.

It seems that the per-thread and per-object iterators never managed
to reach 0x80000000 in previous testing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added reviewers: alc, jeff, kib.
This revision is now accepted and ready to land.Oct 1 2018, 4:04 PM
This revision was automatically updated to reflect the committed changes.