Lines Matching defs:drbd_connection

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