Re: [question] solution for raid10 configuration concurrent with io

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

在 2023/04/27 14:53, Xiao Ni 写道:

// assum that rdev is NULL, and replacement is not NULL

How can trigger this? Could you give the detailed commands?


This is just because raid10_remove_disk() set rdev to NULL first, and
then replace rdev with replacement. This is temporary but io can
concurrent with this temporary status.

raid10_remove_disk

 p = conf->mirrors + number;
 rdevp = &p->rdev;
 *rdevp = NULL;
 // here!
 p->rdev = p->replacement;
 p->replacement = NULL;

Thanks,
Kuai




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux