Lines Matching defs:drbd_device
811 struct drbd_device { struct
812 struct drbd_resource *resource;
813 struct list_head peer_devices;
814 struct list_head pending_bitmap_io;
816 unsigned long flush_jif;
818 struct dentry *debugfs_minor;
819 struct dentry *debugfs_vol;
820 struct dentry *debugfs_vol_oldest_requests;
821 struct dentry *debugfs_vol_act_log_extents;
822 struct dentry *debugfs_vol_resync_extents;
823 struct dentry *debugfs_vol_data_gen_id;
824 struct dentry *debugfs_vol_ed_gen_id;
827 unsigned int vnr; /* volume number within the connection */
828 unsigned int minor; /* device minor number */
830 struct kref kref;
833 unsigned long flags;
838 sector_t p_size; /* partner's disk size */
839 struct request_queue *rq_queue;
840 struct gendisk *vdisk;
842 unsigned long last_reattach_jif;
843 struct drbd_work resync_work;
844 struct drbd_work unplug_work;
845 struct timer_list resync_timer;
846 struct timer_list md_sync_timer;
847 struct timer_list start_resync_timer;
848 struct timer_list request_timer;
851 union drbd_state new_state_tmp;
853 union drbd_dev_state state;
854 wait_queue_head_t misc_wait;
855 wait_queue_head_t state_wait; /* upon each state change. */
856 unsigned int send_cnt;
857 unsigned int recv_cnt;
858 unsigned int read_cnt;
859 unsigned int writ_cnt;
860 unsigned int al_writ_cnt;
861 unsigned int bm_writ_cnt;
862 atomic_t ap_bio_cnt; /* Requests we need to complete */
863 atomic_t ap_actlog_cnt; /* Requests waiting for activity log */
864 atomic_t ap_pending_cnt; /* AP data packets on the wire, ack expected */
865 atomic_t rs_pending_cnt; /* RS request/data packets on the wire */
866 atomic_t unacked_cnt; /* Need to send replies for */
867 atomic_t local_cnt; /* Waiting for local completion */
868 atomic_t suspend_cnt;
871 struct rb_root read_requests;
872 struct rb_root write_requests;
876 struct list_head pending_master_completion[2];
877 struct list_head pending_completion[2];
880 bool use_csums;
882 unsigned long rs_total;
884 unsigned long rs_failed;
886 unsigned long rs_start;
888 unsigned long rs_paused;
890 unsigned long rs_same_csum;
894 unsigned long rs_mark_left[DRBD_SYNC_MARKS];
896 unsigned long rs_mark_time[DRBD_SYNC_MARKS];
898 int rs_last_mark;
899 unsigned long rs_last_bcast; /* [unit jiffies] */
902 sector_t ov_start_sector;
903 sector_t ov_stop_sector;
905 sector_t ov_position;
907 sector_t ov_last_oos_start;
909 sector_t ov_last_oos_size;
910 unsigned long ov_left; /* in bits */
912 struct drbd_bitmap *bitmap;
913 unsigned long bm_resync_fo; /* bit offset for drbd_bm_find_next */
916 struct lru_cache *resync;
918 unsigned int resync_locked;
920 unsigned int resync_wenr;
922 int open_cnt;
923 u64 *p_uuid;
925 struct list_head active_ee; /* IO in progress (P_DATA gets written to disk) */
926 struct list_head sync_ee; /* IO in progress (P_RS_DATA_REPLY gets written to disk) */
927 struct list_head done_ee; /* need to send P_WRITE_ACK */
928 struct list_head read_ee; /* [RS]P_DATA_REQUEST being read */
929 struct list_head net_ee; /* zero-copy network send in progress */
931 int next_barrier_nr;
932 struct list_head resync_reads;
933 atomic_t pp_in_use; /* allocated from page pool */
934 atomic_t pp_in_use_by_net; /* sendpage()d, still referenced by tcp */
935 wait_queue_head_t ee_wait;
936 struct drbd_md_io md_io;
937 spinlock_t al_lock;
938 wait_queue_head_t al_wait;
939 struct lru_cache *act_log; /* activity log */
940 unsigned int al_tr_number;
941 int al_tr_cycle;
942 wait_queue_head_t seq_wait;
943 atomic_t packet_seq;
944 unsigned int peer_seq;
945 spinlock_t peer_seq_lock;
946 unsigned long comm_bm_set; /* communicated number of set bits. */
970 struct drbd_device *device; argument