Lines Matching defs:drbd_device

743 struct drbd_device {  struct
744 struct drbd_resource *resource;
745 struct list_head peer_devices;
746 struct list_head pending_bitmap_io;
748 unsigned long flush_jif;
750 struct dentry *debugfs_minor;
751 struct dentry *debugfs_vol;
752 struct dentry *debugfs_vol_oldest_requests;
753 struct dentry *debugfs_vol_act_log_extents;
754 struct dentry *debugfs_vol_resync_extents;
755 struct dentry *debugfs_vol_data_gen_id;
756 struct dentry *debugfs_vol_ed_gen_id;
759 unsigned int vnr; /* volume number within the connection */
760 unsigned int minor; /* device minor number */
762 struct kref kref;
765 unsigned long flags;
768 struct drbd_backing_dev *ldev;
770 sector_t p_size; /* partner's disk size */
771 struct request_queue *rq_queue;
772 struct gendisk *vdisk;
774 unsigned long last_reattach_jif;
775 struct drbd_work resync_work;
776 struct drbd_work unplug_work;
777 struct timer_list resync_timer;
778 struct timer_list md_sync_timer;
779 struct timer_list start_resync_timer;
780 struct timer_list request_timer;
783 union drbd_state new_state_tmp;
785 union drbd_dev_state state;
786 wait_queue_head_t misc_wait;
787 wait_queue_head_t state_wait; /* upon each state change. */
788 unsigned int send_cnt;
789 unsigned int recv_cnt;
790 unsigned int read_cnt;
791 unsigned int writ_cnt;
792 unsigned int al_writ_cnt;
793 unsigned int bm_writ_cnt;
794 atomic_t ap_bio_cnt; /* Requests we need to complete */
795 atomic_t ap_actlog_cnt; /* Requests waiting for activity log */
796 atomic_t ap_pending_cnt; /* AP data packets on the wire, ack expected */
797 atomic_t rs_pending_cnt; /* RS request/data packets on the wire */
798 atomic_t unacked_cnt; /* Need to send replies for */
799 atomic_t local_cnt; /* Waiting for local completion */
800 atomic_t suspend_cnt;
803 struct rb_root read_requests;
804 struct rb_root write_requests;
808 struct list_head pending_master_completion[2];
809 struct list_head pending_completion[2];
812 bool use_csums;
814 unsigned long rs_total;
816 unsigned long rs_failed;
818 unsigned long rs_start;
820 unsigned long rs_paused;
822 unsigned long rs_same_csum;
826 unsigned long rs_mark_left[DRBD_SYNC_MARKS];
828 unsigned long rs_mark_time[DRBD_SYNC_MARKS];
830 int rs_last_mark;
831 unsigned long rs_last_bcast; /* [unit jiffies] */
834 sector_t ov_start_sector;
835 sector_t ov_stop_sector;
837 sector_t ov_position;
839 sector_t ov_last_oos_start;
841 sector_t ov_last_oos_size;
842 unsigned long ov_left; /* in bits */
844 struct drbd_bitmap *bitmap;
845 unsigned long bm_resync_fo; /* bit offset for drbd_bm_find_next */
848 struct lru_cache *resync;
850 unsigned int resync_locked;
852 unsigned int resync_wenr;
854 int open_cnt;
855 u64 *p_uuid;
857 struct list_head active_ee; /* IO in progress (P_DATA gets written to disk) */
858 struct list_head sync_ee; /* IO in progress (P_RS_DATA_REPLY gets written to disk) */
859 struct list_head done_ee; /* need to send P_WRITE_ACK */
860 struct list_head read_ee; /* [RS]P_DATA_REQUEST being read */
861 struct list_head net_ee; /* zero-copy network send in progress */
863 struct list_head resync_reads;
864 atomic_t pp_in_use; /* allocated from page pool */
865 atomic_t pp_in_use_by_net; /* sendpage()d, still referenced by tcp */
866 wait_queue_head_t ee_wait;
867 struct drbd_md_io md_io;
868 spinlock_t al_lock;
869 wait_queue_head_t al_wait;
870 struct lru_cache *act_log; /* activity log */
871 unsigned int al_tr_number;
872 int al_tr_cycle;
873 wait_queue_head_t seq_wait;
874 atomic_t packet_seq;
875 unsigned int peer_seq;
876 spinlock_t peer_seq_lock;
877 unsigned long comm_bm_set; /* communicated number of set bits. */
901 struct drbd_device *device; argument