Changeset 401b9e42 in mainline for uspace/srv/bd/hr/var.h


Ignore:
Timestamp:
2025-01-12T21:53:55Z (6 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
dec4150
Parents:
e2b417f
git-author:
Miroslav Cimerman <mc@…> (2025-01-12 19:18:08)
git-committer:
Miroslav Cimerman <mc@…> (2025-01-12 21:53:55)
Message:

hr: state_changed and peding_invalidation atomic flags

These flags are used to check whether there was a state
change, or if there is a pending invalidation, so that
we can avoid the slow code paths in a lockless fashion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/var.h

    re2b417f r401b9e42  
    117117         * are harvested later when we are able to.
    118118         */
     119        _Atomic bool pending_invalidation;
    119120        fibril_mutex_t deferred_list_lock;
    120121        list_t deferred_invalidations_list;
    121122        hr_deferred_invalidation_t deferred_inval[HR_MAX_EXTENTS];
    122123
     124        _Atomic bool state_changed;
    123125        _Atomic uint64_t rebuild_blk;
    124126        uint64_t counter; /* metadata syncing */
Note: See TracChangeset for help on using the changeset viewer.