AR_S_READY
rdp->status |= AR_S_READY;
rdp->status &= ~AR_S_READY;
if (!(rdp->status & AR_S_DEGRADED) || !(rdp->status & AR_S_READY))
if (!(rdp->status & AR_S_DEGRADED) || !(rdp->status & AR_S_READY))
raid->status = AR_S_READY;
raid->status = AR_S_READY;
raid->status |= AR_S_READY;
raid->status &= ~AR_S_READY;
if (!(rdp->status & AR_S_READY) ||
if (rdp->status & AR_S_READY) {
if (!(rdp->status & AR_S_READY)) {
switch (rdp->status & (AR_S_READY | AR_S_DEGRADED | AR_S_REBUILDING)) {
case AR_S_READY: return "READY";
case AR_S_READY | AR_S_DEGRADED: return "DEGRADED";
case AR_S_READY | AR_S_REBUILDING:
case AR_S_READY | AR_S_DEGRADED | AR_S_REBUILDING: return "REBUILDING";
if (!(rdp->status & AR_S_READY)) {
if (rdp->status & AR_S_READY) {
if (rdp->status & AR_S_READY) {
rdp->status |= AR_S_READY;
rdp->status &= ~AR_S_READY;
rdp->status &= ~AR_S_READY;
rdp->status &= ~AR_S_READY;
rdp->status &= ~AR_S_READY;
if (!(rdp->status & AR_S_READY)) {