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


Ignore:
Timestamp:
2025-06-17T22:33:02Z (5 weeks ago)
Author:
Miroslav Cimerman <mc@…>
Children:
f0cc1c64
Parents:
3c518fc
Message:

hr: RAID 0, 1: use ENOMEM safe primitives

File:
1 edited

Legend:

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

    r3c518fc rf0360ec  
    280280
    281281        hr_fgroup_t *group = hr_fgroup_create(vol->fge, span);
    282         if (group == NULL)
    283                 return ENOMEM;
    284282
    285283        while (left != 0) {
     
    316314
    317315        size_t bad;
    318         rc = hr_fgroup_wait(group, NULL, &bad);
    319         if (rc == ENOMEM && type == HR_BD_READ)
    320                 return ENOMEM;
     316        (void)hr_fgroup_wait(group, NULL, &bad);
    321317
    322318        if (bad > 0)
Note: See TracChangeset for help on using the changeset viewer.