Lines Matching defs:drbd_device

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