Page MenuHomeFreeBSD

hyperv: Use atomic_fetchadd_int to get GPADL id.
ClosedPublic

Authored by sepherosa_gmail.com on Feb 25 2016, 8:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 6:55 AM
Unknown Object (File)
Sun, Jan 19, 6:56 PM
Unknown Object (File)
Tue, Jan 7, 9:56 PM
Unknown Object (File)
Tue, Jan 7, 9:56 PM
Unknown Object (File)
Tue, Jan 7, 9:55 PM
Unknown Object (File)
Tue, Jan 7, 9:01 PM
Unknown Object (File)
Dec 3 2024, 4:31 PM
Unknown Object (File)
Dec 1 2024, 1:55 PM
Subscribers
None

Details

Summary

Read then atomic_add_int is not MPSAFE.

And don't decrease the global GPADL id upon GPADL establish messages allocation failure, which should be really rare (and we should convert the message allocation to use M_WAITOK); add comment about why we _must_ not decrease the global GPADL id there.

Diff Detail

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

Event Timeline

sepherosa_gmail.com retitled this revision from to hyperv: Use atomic_fetchadd_int to get GPADL id..
sepherosa_gmail.com updated this object.
sepherosa_gmail.com edited the test plan for this revision. (Show Details)

Yes, substract the next_gpadl_handle is risk here.

This revision is now accepted and ready to land.Feb 25 2016, 9:04 AM
This revision was automatically updated to reflect the committed changes.