Changeset 974f9ba in mainline for uspace/srv/bd/hr/util.c


Ignore:
Timestamp:
2025-07-04T19:42:41Z (3 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
c76bf33
Parents:
6aafb48
Message:

hr: different RAID 1 read strategies

First - take first usable extent.
Closest - take extent with last seek position.
Round-robin - always switch extents.
Split - split I/O to multiple extents.

File:
1 edited

Legend:

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

    r6aafb48 r974f9ba  
    169169        atomic_init(&vol->state_dirty, false);
    170170        atomic_init(&vol->first_write, false);
     171        for (size_t i = 0; i < HR_MAX_EXTENTS; i++)
     172                atomic_init(&vol->last_ext_pos_arr[i], 0);
     173        atomic_init(&vol->last_ext_used, 0);
    171174        atomic_init(&vol->rebuild_blk, 0);
    172175        atomic_init(&vol->open_cnt, 0);
Note: See TracChangeset for help on using the changeset viewer.