Changeset 7a80c63 in mainline for uspace/srv/bd/hr/raid0.c


Ignore:
Timestamp:
2025-03-28T23:40:33Z (3 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
8a65373
Parents:
0437dd5
Message:

hr: raid{0,1,5}.c: increment open() count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/raid0.c

    r0437dd5 r7a80c63  
    133133{
    134134        HR_DEBUG("%s()", __func__);
     135
     136        hr_volume_t *vol = bd->srvs->sarg;
     137
     138        atomic_fetch_add_explicit(&vol->open_cnt, 1, memory_order_relaxed);
     139
    135140        return EOK;
    136141}
     
    139144{
    140145        HR_DEBUG("%s()", __func__);
     146
     147        hr_volume_t *vol = bd->srvs->sarg;
     148
     149        atomic_fetch_sub_explicit(&vol->open_cnt, 1, memory_order_relaxed);
     150
    141151        return EOK;
    142152}
Note: See TracChangeset for help on using the changeset viewer.