SPCSTATE_DYING
while (!rw->rw_done && spc->spc_state != SPCSTATE_DYING) {
if (spcstate == SPCSTATE_DYING)
spc->spc_state = SPCSTATE_DYING;