Home
last modified time | relevance | path

Searched refs:pdsk (Results 1 – 9 of 9) sorted by relevance

/drivers/block/drbd/
Ddrbd_state.c169 ds = max_t(enum drbd_disk_state, ds, mdev->state.pdsk); in conn_highest_pdsk()
409 drbd_disk_str(ns.pdsk), in print_st()
452 if (ns.pdsk != os.pdsk && flags & CS_DC_PDSK) in print_state_change()
454 drbd_disk_str(os.pdsk), in print_state_change()
455 drbd_disk_str(ns.pdsk)); in print_state_change()
543 ns.role == R_PRIMARY && ns.conn < C_CONNECTED && ns.pdsk >= D_UNKNOWN) in is_valid_state()
546 else if (ns.role == R_PRIMARY && ns.disk <= D_INCONSISTENT && ns.pdsk <= D_INCONSISTENT) in is_valid_state()
552 else if (ns.conn > C_CONNECTED && ns.pdsk < D_INCONSISTENT) in is_valid_state()
555 else if (ns.conn > C_CONNECTED && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
573 else if (ns.role == R_PRIMARY && ns.disk < D_UP_TO_DATE && ns.pdsk < D_UP_TO_DATE) in is_valid_state()
[all …]
Ddrbd_nl.c446 mask.pdsk = D_MASK; in conn_try_outdate_peer()
447 val.pdsk = D_INCONSISTENT; in conn_try_outdate_peer()
451 mask.pdsk = D_MASK; in conn_try_outdate_peer()
452 val.pdsk = D_OUTDATED; in conn_try_outdate_peer()
458 mask.pdsk = D_MASK; in conn_try_outdate_peer()
459 val.pdsk = D_OUTDATED; in conn_try_outdate_peer()
476 mask.pdsk = D_MASK; in conn_try_outdate_peer()
477 val.pdsk = D_OUTDATED; in conn_try_outdate_peer()
547 if (rv == SS_CW_FAILED_BY_PEER && mask.pdsk != 0) { in drbd_set_role()
548 val.pdsk = 0; in drbd_set_role()
[all …]
Ddrbd_req.h333 return s.pdsk == D_UP_TO_DATE || in drbd_should_do_remote()
334 (s.pdsk >= D_INCONSISTENT && in drbd_should_do_remote()
Ddrbd_state.h86 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */ member
98 unsigned pdsk:4 ; /* 8/16 from D_DISKLESS to D_UP_TO_DATE */
Ddrbd_worker.c907 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
910 ns.pdsk = D_INCONSISTENT; in drbd_resync_finished()
914 ns.pdsk = D_UP_TO_DATE; in drbd_resync_finished()
1043 if (likely(mdev->state.pdsk >= D_INCONSISTENT)) { in w_e_end_rsdata_req()
1682 ns.pdsk = D_INCONSISTENT; in drbd_start_resync()
Ddrbd_proc.c264 drbd_disk_str(mdev->state.pdsk), in drbd_seq_show()
Ddrbd_receiver.c2265 if (mdev->state.pdsk < D_INCONSISTENT) { in receive_Data()
3651 if (mdev->state.pdsk >= D_INCONSISTENT && in receive_sizes()
3711 _drbd_set_state(_NS2(mdev, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE), in receive_uuids()
3763 ms.pdsk = ps.disk; in convert_state()
3764 ms.disk = ps.pdsk; in convert_state()
3863 if ((os.pdsk == D_INCONSISTENT || os.pdsk == D_CONSISTENT) && in receive_state()
3900 if (os.pdsk == D_UP_TO_DATE && real_peer_disk == D_INCONSISTENT && in receive_state()
3957 ns.pdsk = real_peer_disk; in receive_state()
3962 …if (ns.pdsk == D_CONSISTENT && drbd_suspended(mdev) && ns.conn == C_CONNECTED && os.conn < C_CONNE… in receive_state()
Ddrbd_req.c929 if (mdev->state.pdsk != D_UP_TO_DATE) in do_remote_read()
Ddrbd_main.c1869 .pdsk = D_UNKNOWN, in drbd_set_defaults()