Hi, 在 2023/04/27 14:53, Xiao Ni 写道:
// assum that rdev is NULL, and replacement is not NULLHow 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