Lines Matching defs:drbd_connection
708 struct drbd_connection { struct
709 struct list_head connections;
710 struct drbd_resource *resource;
712 struct dentry *debugfs_conn;
713 struct dentry *debugfs_conn_callback_history;
714 struct dentry *debugfs_conn_oldest_requests;
716 struct kref kref;
717 struct idr peer_devices; /* volume number to peer device mapping */
718 enum drbd_conns cstate; /* Only C_STANDALONE to C_WF_REPORT_PARAMS */
719 struct mutex cstate_mutex; /* Protects graceful disconnects */
720 unsigned int connect_cnt; /* Inc each time a connection is established */
722 unsigned long flags;
723 struct net_conf *net_conf; /* content protected by rcu */
724 wait_queue_head_t ping_wait; /* Woken upon reception of a ping, and a state change */
726 struct sockaddr_storage my_addr;
727 int my_addr_len;
728 struct sockaddr_storage peer_addr;
729 int peer_addr_len;
731 struct drbd_socket data; /* data/barrier/cstate/parameter packets */
732 struct drbd_socket meta; /* ping/ack (metadata) packets */
733 int agreed_pro_version; /* actually used protocol version */
734 u32 agreed_features;
735 unsigned long last_received; /* in jiffies, either socket */
736 unsigned int ko_count;
738 struct list_head transfer_log; /* all requests not yet fully processed */
740 struct crypto_hash *cram_hmac_tfm;
741 …ypto_hash *integrity_tfm; /* checksums we compute, updates protected by connection->data->mutex */
742 …ct crypto_hash *peer_integrity_tfm; /* checksums we verify, only accessed from receiver thread */
743 struct crypto_hash *csums_tfm;
744 struct crypto_hash *verify_tfm;
745 void *int_dig_in;
746 void *int_dig_vv;
749 struct drbd_epoch *current_epoch;
750 spinlock_t epoch_lock;
751 unsigned int epochs;
752 atomic_t current_tle_nr; /* transfer log epoch number */
753 unsigned current_tle_writes; /* writes seen within this tl epoch */
755 unsigned long last_reconnect_jif;
756 struct drbd_thread receiver;
757 struct drbd_thread worker;
758 struct drbd_thread asender;
763 struct drbd_request *req_next; /* DRBD 9: todo.req_next */
764 struct drbd_request *req_ack_pending;
765 struct drbd_request *req_not_net_done;
768 struct drbd_work_queue sender_work;
771 unsigned int w_cb_nr; /* keeps counting up */
772 unsigned int r_cb_nr; /* keeps counting up */
773 struct drbd_thread_timing_details w_timing_details[DRBD_THREAD_DETAILS_HIST];
774 struct drbd_thread_timing_details r_timing_details[DRBD_THREAD_DETAILS_HIST];
776 struct {
788 } send;