Searched refs:pdsk (Results 1 – 8 of 8) sorted by relevance
664 drbd_disk_str(ns.pdsk), in print_st()718 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()721 else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) in is_valid_state()727 else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT) in is_valid_state()730 else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()748 else if (ns.conn >= C_CONNECTED && ns.pdsk == D_UNKNOWN) in is_valid_state()855 if (ns.pdsk > D_UNKNOWN || ns.pdsk < D_INCONSISTENT) in sanitize_state()856 ns.pdsk = D_UNKNOWN; in sanitize_state()865 (ns.disk <= D_FAILED || ns.pdsk <= D_FAILED)) { in sanitize_state()878 ns.pdsk = mdev->new_state_tmp.pdsk; in sanitize_state()[all …]
205 D_ASSERT(mdev->state.pdsk == D_UNKNOWN); in drbd_try_outdate_peer()212 nps = mdev->state.pdsk; in drbd_try_outdate_peer()234 nps = mdev->state.pdsk; in drbd_try_outdate_peer()293 ns.pdsk = nps; in _try_outdate_peer_async()333 if (rv == SS_CW_FAILED_BY_PEER && mask.pdsk != 0) { in drbd_set_role()334 val.pdsk = 0; in drbd_set_role()335 mask.pdsk = 0; in drbd_set_role()349 mdev->state.disk == D_CONSISTENT && mask.pdsk == 0) { in drbd_set_role()350 D_ASSERT(mdev->state.pdsk == D_UNKNOWN); in drbd_set_role()358 val.pdsk = nps; in drbd_set_role()[all …]
368 return s.pdsk == D_UP_TO_DATE || in drbd_should_do_remote()369 (s.pdsk >= D_INCONSISTENT && in drbd_should_do_remote()
243 if (cancel || mdev->state.pdsk != D_UP_TO_DATE) { in w_read_retry_remote()852 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()855 ns.pdsk = D_INCONSISTENT; in drbd_resync_finished()859 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()984 if (likely(mdev->state.pdsk >= D_INCONSISTENT)) { in w_e_end_rsdata_req()1538 ns.pdsk = D_INCONSISTENT; in drbd_start_resync()
256 drbd_disk_str(mdev->state.pdsk), in drbd_seq_show()
1845 if (mdev->state.pdsk < D_INCONSISTENT) { in receive_Data()3015 if (mdev->state.pdsk >= D_INCONSISTENT && in receive_sizes()3066 _drbd_set_state(_NS2(mdev, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids()3116 ms.pdsk = ps.disk; in convert_state()3117 ms.disk = ps.pdsk; in convert_state()3172 if (os.pdsk == D_INCONSISTENT && real_peer_disk == D_UP_TO_DATE && in receive_state()3200 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state()3257 ns.pdsk = real_peer_disk; in receive_state()3262 if (ns.pdsk == D_CONSISTENT && is_susp(ns) && ns.conn == C_CONNECTED && os.conn < C_CONNECTED && in receive_state()3836 if (mdev->state.role == R_PRIMARY && fp >= FP_RESOURCE && mdev->state.pdsk >= D_UNKNOWN) in drbd_disconnect()
475 if (mdev->state.pdsk != D_UP_TO_DATE) { in __req_mod()812 remote = !local && mdev->state.pdsk >= D_UP_TO_DATE; in drbd_make_request_common()
247 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ member263 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */