Changeset d2da1be in mainline
- Timestamp:
- 2025-03-06T23:15:08Z (2 months ago)
- Children:
- e24c064
- Parents:
- f1be66bf
- git-author:
- Miroslav Cimerman <mc@…> (2025-03-06 23:12:28)
- git-committer:
- Miroslav Cimerman <mc@…> (2025-03-06 23:15:08)
- Location:
- uspace/srv/bd/hr
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/hr.c
rf1be66bf rd2da1be 258 258 259 259 atomic_init(&new_volume->rebuild_blk, 0); 260 atomic_init(&new_volume->state_ changed, false);260 atomic_init(&new_volume->state_dirty, false); 261 261 262 262 rc = new_volume->hr_ops.create(new_volume); -
uspace/srv/bd/hr/raid1.c
rf1be66bf rd2da1be 225 225 bool exp = true; 226 226 227 if (!atomic_compare_exchange_strong(&vol->state_changed, &exp, false)) 227 /* TODO: could also wrap this */ 228 if (!atomic_compare_exchange_strong(&vol->state_dirty, &exp, false)) 228 229 return; 229 230 -
uspace/srv/bd/hr/util.c
rf1be66bf rd2da1be 413 413 void hr_mark_vol_state_dirty(hr_volume_t *vol) 414 414 { 415 atomic_store(&vol->state_ changed, true);415 atomic_store(&vol->state_dirty, true); 416 416 } 417 417 -
uspace/srv/bd/hr/var.h
rf1be66bf rd2da1be 106 106 fibril_rwlock_t states_lock; 107 107 108 _Atomic bool state_ changed;108 _Atomic bool state_dirty; 109 109 _Atomic uint64_t rebuild_blk; 110 110 uint64_t counter; /* metadata syncing */
Note:
See TracChangeset
for help on using the changeset viewer.