Lines Matching defs:drbd_device
819 struct drbd_device { struct
820 struct drbd_resource *resource;
821 struct list_head peer_devices;
822 struct list_head pending_bitmap_io;
824 unsigned long flush_jif;
826 struct dentry *debugfs_minor;
827 struct dentry *debugfs_vol;
828 struct dentry *debugfs_vol_oldest_requests;
829 struct dentry *debugfs_vol_act_log_extents;
830 struct dentry *debugfs_vol_resync_extents;
831 struct dentry *debugfs_vol_data_gen_id;
834 unsigned int vnr; /* volume number within the connection */
835 unsigned int minor; /* device minor number */
837 struct kref kref;
840 unsigned long flags;
845 sector_t p_size; /* partner's disk size */
846 struct request_queue *rq_queue;
847 struct block_device *this_bdev;
848 struct gendisk *vdisk;
850 unsigned long last_reattach_jif;
851 struct drbd_work resync_work;
852 struct drbd_work unplug_work;
853 struct timer_list resync_timer;
854 struct timer_list md_sync_timer;
855 struct timer_list start_resync_timer;
856 struct timer_list request_timer;
859 union drbd_state new_state_tmp;
861 union drbd_dev_state state;
862 wait_queue_head_t misc_wait;
863 wait_queue_head_t state_wait; /* upon each state change. */
864 unsigned int send_cnt;
865 unsigned int recv_cnt;
866 unsigned int read_cnt;
867 unsigned int writ_cnt;
868 unsigned int al_writ_cnt;
869 unsigned int bm_writ_cnt;
870 atomic_t ap_bio_cnt; /* Requests we need to complete */
871 atomic_t ap_actlog_cnt; /* Requests waiting for activity log */
872 atomic_t ap_pending_cnt; /* AP data packets on the wire, ack expected */
873 atomic_t rs_pending_cnt; /* RS request/data packets on the wire */
874 atomic_t unacked_cnt; /* Need to send replies for */
875 atomic_t local_cnt; /* Waiting for local completion */
878 struct rb_root read_requests;
879 struct rb_root write_requests;
883 struct list_head pending_master_completion[2];
884 struct list_head pending_completion[2];
887 bool use_csums;
889 unsigned long rs_total;
891 unsigned long rs_failed;
893 unsigned long rs_start;
895 unsigned long rs_paused;
897 unsigned long rs_same_csum;
901 unsigned long rs_mark_left[DRBD_SYNC_MARKS];
903 unsigned long rs_mark_time[DRBD_SYNC_MARKS];
905 int rs_last_mark;
906 unsigned long rs_last_bcast; /* [unit jiffies] */
909 sector_t ov_start_sector;
910 sector_t ov_stop_sector;
912 sector_t ov_position;
914 sector_t ov_last_oos_start;
916 sector_t ov_last_oos_size;
917 unsigned long ov_left; /* in bits */
919 struct drbd_bitmap *bitmap;
920 unsigned long bm_resync_fo; /* bit offset for drbd_bm_find_next */
923 struct lru_cache *resync;
925 unsigned int resync_locked;
927 unsigned int resync_wenr;
929 int open_cnt;
930 u64 *p_uuid;
932 struct list_head active_ee; /* IO in progress (P_DATA gets written to disk) */
933 struct list_head sync_ee; /* IO in progress (P_RS_DATA_REPLY gets written to disk) */
934 struct list_head done_ee; /* need to send P_WRITE_ACK */
935 struct list_head read_ee; /* [RS]P_DATA_REQUEST being read */
936 struct list_head net_ee; /* zero-copy network send in progress */
938 int next_barrier_nr;
939 struct list_head resync_reads;
940 atomic_t pp_in_use; /* allocated from page pool */
941 atomic_t pp_in_use_by_net; /* sendpage()d, still referenced by tcp */
942 wait_queue_head_t ee_wait;
943 struct drbd_md_io md_io;
944 spinlock_t al_lock;
945 wait_queue_head_t al_wait;
946 struct lru_cache *act_log; /* activity log */
947 unsigned int al_tr_number;
948 int al_tr_cycle;
949 wait_queue_head_t seq_wait;
950 atomic_t packet_seq;
951 unsigned int peer_seq;
952 spinlock_t peer_seq_lock;
953 unsigned long comm_bm_set; /* communicated number of set bits. */
977 struct drbd_device *device; argument