Lines Matching defs:drbd_device

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