pdsk 1949 drivers/block/drbd/drbd_main.c if (device->state.pdsk >= D_INCONSISTENT && device->state.conn >= C_CONNECTED) { pdsk 1968 drivers/block/drbd/drbd_main.c .pdsk = D_UNKNOWN, pdsk 525 drivers/block/drbd/drbd_nl.c mask.pdsk = D_MASK; pdsk 526 drivers/block/drbd/drbd_nl.c val.pdsk = D_INCONSISTENT; pdsk 530 drivers/block/drbd/drbd_nl.c mask.pdsk = D_MASK; pdsk 531 drivers/block/drbd/drbd_nl.c val.pdsk = D_OUTDATED; pdsk 537 drivers/block/drbd/drbd_nl.c mask.pdsk = D_MASK; pdsk 538 drivers/block/drbd/drbd_nl.c val.pdsk = D_OUTDATED; pdsk 557 drivers/block/drbd/drbd_nl.c mask.pdsk = D_MASK; pdsk 558 drivers/block/drbd/drbd_nl.c val.pdsk = D_OUTDATED; pdsk 648 drivers/block/drbd/drbd_nl.c if (rv == SS_CW_FAILED_BY_PEER && mask.pdsk != 0) { pdsk 649 drivers/block/drbd/drbd_nl.c val.pdsk = 0; pdsk 650 drivers/block/drbd/drbd_nl.c mask.pdsk = 0; pdsk 664 drivers/block/drbd/drbd_nl.c device->state.disk == D_CONSISTENT && mask.pdsk == 0) { pdsk 665 drivers/block/drbd/drbd_nl.c D_ASSERT(device, device->state.pdsk == D_UNKNOWN); pdsk 676 drivers/block/drbd/drbd_nl.c if (rv == SS_PRIMARY_NOP && mask.pdsk == 0) { pdsk 679 drivers/block/drbd/drbd_nl.c mask.pdsk = D_MASK; pdsk 680 drivers/block/drbd/drbd_nl.c val.pdsk = D_OUTDATED; pdsk 733 drivers/block/drbd/drbd_nl.c device->state.pdsk <= D_FAILED) pdsk 1989 drivers/block/drbd/drbd_nl.c if (device->state.pdsk != D_UP_TO_DATE && device->ed_uuid && pdsk 2135 drivers/block/drbd/drbd_nl.c ns.pdsk = D_OUTDATED; pdsk 2139 drivers/block/drbd/drbd_nl.c (ns.pdsk == D_OUTDATED || rcu_dereference(device->ldev->disk_conf)->fencing == FP_DONT_CARE)) pdsk 2562 drivers/block/drbd/drbd_nl.c info->peer_disk_state = device->state.pdsk; pdsk 2733 drivers/block/drbd/drbd_nl.c rv = conn_request_state(connection, NS2(conn, C_DISCONNECTING, pdsk, D_OUTDATED), 0); pdsk 3123 drivers/block/drbd/drbd_nl.c retcode = drbd_request_state(device, NS(pdsk, D_INCONSISTENT)); pdsk 4120 drivers/block/drbd/drbd_nl.c adm_ctx.device->state.pdsk == D_OUTDATED ? UT_PEER_OUTDATED : pdsk 4240 drivers/block/drbd/drbd_nl.c _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), pdsk 280 drivers/block/drbd/drbd_proc.c drbd_disk_str(state.pdsk), pdsk 2724 drivers/block/drbd/drbd_receiver.c if (device->state.pdsk < D_INCONSISTENT) { pdsk 4150 drivers/block/drbd/drbd_receiver.c (device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS)) { pdsk 4262 drivers/block/drbd/drbd_receiver.c if (device->state.pdsk >= D_INCONSISTENT && pdsk 4301 drivers/block/drbd/drbd_receiver.c if ((device->state.conn < C_CONNECTED || device->state.pdsk == D_DISKLESS) && pdsk 4324 drivers/block/drbd/drbd_receiver.c _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), pdsk 4376 drivers/block/drbd/drbd_receiver.c ms.pdsk = ps.disk; pdsk 4377 drivers/block/drbd/drbd_receiver.c ms.disk = ps.pdsk; pdsk 4480 drivers/block/drbd/drbd_receiver.c if ((os.pdsk == D_INCONSISTENT || os.pdsk == D_CONSISTENT) && pdsk 4517 drivers/block/drbd/drbd_receiver.c if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && pdsk 4593 drivers/block/drbd/drbd_receiver.c ns.pdsk = real_peer_disk; pdsk 4598 drivers/block/drbd/drbd_receiver.c if (ns.pdsk == D_CONSISTENT && drbd_suspended(device) && ns.conn == C_CONNECTED && os.conn < C_CONNECTED && pdsk 1061 drivers/block/drbd/drbd_req.c if (device->state.pdsk != D_UP_TO_DATE) pdsk 1091 drivers/block/drbd/drbd_req.c return s.pdsk == D_UP_TO_DATE || pdsk 1092 drivers/block/drbd/drbd_req.c (s.pdsk >= D_INCONSISTENT && pdsk 1268 drivers/block/drbd/drbd_req.c return s.disk == D_UP_TO_DATE || s.pdsk == D_UP_TO_DATE; pdsk 137 drivers/block/drbd/drbd_state.c device->state.pdsk; pdsk 199 drivers/block/drbd/drbd_state.c peer_device_state_change->disk_state[NEW] = state.pdsk; pdsk 408 drivers/block/drbd/drbd_state.c disk_state = max_t(enum drbd_disk_state, disk_state, device->state.pdsk); pdsk 723 drivers/block/drbd/drbd_state.c drbd_disk_str(ns.pdsk), pdsk 766 drivers/block/drbd/drbd_state.c if (ns.pdsk != os.pdsk && flags & CS_DC_PDSK) pdsk 768 drivers/block/drbd/drbd_state.c drbd_disk_str(os.pdsk), pdsk 769 drivers/block/drbd/drbd_state.c drbd_disk_str(ns.pdsk)); pdsk 857 drivers/block/drbd/drbd_state.c ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) pdsk 860 drivers/block/drbd/drbd_state.c else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) pdsk 866 drivers/block/drbd/drbd_state.c else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT) pdsk 869 drivers/block/drbd/drbd_state.c else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) pdsk 887 drivers/block/drbd/drbd_state.c else if (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) pdsk 891 drivers/block/drbd/drbd_state.c ns.pdsk == D_UNKNOWN) pdsk 894 drivers/block/drbd/drbd_state.c else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) pdsk 946 drivers/block/drbd/drbd_state.c && ns.pdsk == D_UP_TO_DATE pdsk 966 drivers/block/drbd/drbd_state.c if (ns.conn == C_DISCONNECTING && ns.pdsk == D_OUTDATED && pdsk 967 drivers/block/drbd/drbd_state.c os.conn < C_CONNECTED && os.pdsk > D_OUTDATED) pdsk 1073 drivers/block/drbd/drbd_state.c if (ns.pdsk > D_UNKNOWN || ns.pdsk < D_INCONSISTENT) pdsk 1074 drivers/block/drbd/drbd_state.c ns.pdsk = D_UNKNOWN; pdsk 1083 drivers/block/drbd/drbd_state.c if (ns.conn > C_CONNECTED && (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) { pdsk 1095 drivers/block/drbd/drbd_state.c ns.pdsk = device->new_state_tmp.pdsk; pdsk 1100 drivers/block/drbd/drbd_state.c ns.pdsk = D_UNKNOWN; pdsk 1109 drivers/block/drbd/drbd_state.c if (ns.pdsk == D_CONSISTENT || ns.pdsk == D_OUTDATED) pdsk 1110 drivers/block/drbd/drbd_state.c ns.pdsk = D_UP_TO_DATE; pdsk 1184 drivers/block/drbd/drbd_state.c if (ns.pdsk > pdsk_max) pdsk 1185 drivers/block/drbd/drbd_state.c ns.pdsk = pdsk_max; pdsk 1187 drivers/block/drbd/drbd_state.c if (ns.pdsk < pdsk_min) { pdsk 1190 drivers/block/drbd/drbd_state.c ns.pdsk = pdsk_min; pdsk 1194 drivers/block/drbd/drbd_state.c (ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk > D_OUTDATED) && pdsk 1195 drivers/block/drbd/drbd_state.c !(os.role == R_PRIMARY && os.conn < C_CONNECTED && os.pdsk > D_OUTDATED)) pdsk 1199 drivers/block/drbd/drbd_state.c (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) && pdsk 1200 drivers/block/drbd/drbd_state.c !(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE)) pdsk 1419 drivers/block/drbd/drbd_state.c (device->state.pdsk < D_INCONSISTENT && device->state.peer == R_PRIMARY)) pdsk 1427 drivers/block/drbd/drbd_state.c if (device->state.pdsk <= D_OUTDATED && device->state.pdsk >= D_INCONSISTENT) pdsk 1439 drivers/block/drbd/drbd_state.c if (os.disk == D_INCONSISTENT && os.pdsk == D_INCONSISTENT && pdsk 1715 drivers/block/drbd/drbd_state.c if ((os.disk != D_UP_TO_DATE || os.pdsk != D_UP_TO_DATE) pdsk 1716 drivers/block/drbd/drbd_state.c && (ns.disk == D_UP_TO_DATE && ns.pdsk == D_UP_TO_DATE)) { pdsk 1725 drivers/block/drbd/drbd_state.c if (!(os.role == R_PRIMARY && os.disk < D_UP_TO_DATE && os.pdsk < D_UP_TO_DATE) && pdsk 1726 drivers/block/drbd/drbd_state.c (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE)) pdsk 1792 drivers/block/drbd/drbd_state.c if (os.pdsk == D_DISKLESS && pdsk 1793 drivers/block/drbd/drbd_state.c ns.pdsk > D_DISKLESS && ns.pdsk != D_UNKNOWN) { /* attach on the peer */ pdsk 1814 drivers/block/drbd/drbd_state.c if (lost_contact_to_peer_data(os.pdsk, ns.pdsk)) { pdsk 1829 drivers/block/drbd/drbd_state.c if (ns.pdsk < D_INCONSISTENT && get_ldev(device)) { pdsk 1975 drivers/block/drbd/drbd_state.c if (ns.disk > D_NEGOTIATING && ns.pdsk > D_NEGOTIATING && pdsk 2079 drivers/block/drbd/drbd_state.c if (ns_max.pdsk <= D_OUTDATED) { pdsk 2114 drivers/block/drbd/drbd_state.c .pdsk = D_UNKNOWN, pdsk 2140 drivers/block/drbd/drbd_state.c if (cs.pdsk != os.pdsk) pdsk 2203 drivers/block/drbd/drbd_state.c .pdsk = D_MASK pdsk 2237 drivers/block/drbd/drbd_state.c ns_max.pdsk = max_t(enum drbd_disk_state, ns.pdsk, ns_max.pdsk); pdsk 2243 drivers/block/drbd/drbd_state.c ns_min.pdsk = min_t(enum drbd_disk_state, ns.pdsk, ns_min.pdsk); pdsk 2253 drivers/block/drbd/drbd_state.c .pdsk = D_UNKNOWN pdsk 91 drivers/block/drbd/drbd_state.h unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ pdsk 103 drivers/block/drbd/drbd_state.h unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ pdsk 951 drivers/block/drbd/drbd_worker.c ns.pdsk = D_UP_TO_DATE; pdsk 954 drivers/block/drbd/drbd_worker.c ns.pdsk = D_INCONSISTENT; pdsk 958 drivers/block/drbd/drbd_worker.c ns.pdsk = D_UP_TO_DATE; pdsk 1006 drivers/block/drbd/drbd_worker.c pdsk_state = min_t(enum drbd_disk_state, pdsk_state, device->state.pdsk); pdsk 1135 drivers/block/drbd/drbd_worker.c if (likely(device->state.pdsk >= D_INCONSISTENT)) { pdsk 1811 drivers/block/drbd/drbd_worker.c ns.pdsk = D_INCONSISTENT; pdsk 260 include/linux/drbd.h unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ pdsk 276 include/linux/drbd.h unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */