Lines Matching defs:drbd_connection
683 struct drbd_connection { struct
684 struct list_head connections;
685 struct drbd_resource *resource;
687 struct dentry *debugfs_conn;
688 struct dentry *debugfs_conn_callback_history;
689 struct dentry *debugfs_conn_oldest_requests;
691 struct kref kref;
692 struct idr peer_devices; /* volume number to peer device mapping */
693 enum drbd_conns cstate; /* Only C_STANDALONE to C_WF_REPORT_PARAMS */
694 struct mutex cstate_mutex; /* Protects graceful disconnects */
695 unsigned int connect_cnt; /* Inc each time a connection is established */
697 unsigned long flags;
698 struct net_conf *net_conf; /* content protected by rcu */
699 wait_queue_head_t ping_wait; /* Woken upon reception of a ping, and a state change */
701 struct sockaddr_storage my_addr;
702 int my_addr_len;
703 struct sockaddr_storage peer_addr;
704 int peer_addr_len;
706 struct drbd_socket data; /* data/barrier/cstate/parameter packets */
707 struct drbd_socket meta; /* ping/ack (metadata) packets */
708 int agreed_pro_version; /* actually used protocol version */
709 u32 agreed_features;
710 unsigned long last_received; /* in jiffies, either socket */
711 unsigned int ko_count;
713 struct list_head transfer_log; /* all requests not yet fully processed */
715 struct crypto_shash *cram_hmac_tfm;
716 …pto_shash *integrity_tfm; /* checksums we compute, updates protected by connection->data->mutex */
717 …t crypto_shash *peer_integrity_tfm; /* checksums we verify, only accessed from receiver thread */
718 struct crypto_shash *csums_tfm;
719 struct crypto_shash *verify_tfm;
720 void *int_dig_in;
721 void *int_dig_vv;
724 struct drbd_epoch *current_epoch;
725 spinlock_t epoch_lock;
726 unsigned int epochs;
727 atomic_t current_tle_nr; /* transfer log epoch number */
728 unsigned current_tle_writes; /* writes seen within this tl epoch */
730 unsigned long last_reconnect_jif;
732 struct blk_plug receiver_plug;
733 struct drbd_thread receiver;
734 struct drbd_thread worker;
735 struct drbd_thread ack_receiver;
736 struct workqueue_struct *ack_sender;
741 struct drbd_request *req_next; /* DRBD 9: todo.req_next */
742 struct drbd_request *req_ack_pending;
743 struct drbd_request *req_not_net_done;
746 struct drbd_work_queue sender_work;
771 static inline bool has_net_conf(struct drbd_connection *connection) in has_net_conf() argument