Lines Matching defs:drbd_device

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