Lines Matching defs:drbd_connection
617 struct drbd_connection { struct
618 struct list_head connections;
619 struct drbd_resource *resource;
621 struct dentry *debugfs_conn;
622 struct dentry *debugfs_conn_callback_history;
623 struct dentry *debugfs_conn_oldest_requests;
625 struct kref kref;
626 struct idr peer_devices; /* volume number to peer device mapping */
627 enum drbd_conns cstate; /* Only C_STANDALONE to C_WF_REPORT_PARAMS */
628 struct mutex cstate_mutex; /* Protects graceful disconnects */
629 unsigned int connect_cnt; /* Inc each time a connection is established */
631 unsigned long flags;
632 struct net_conf *net_conf; /* content protected by rcu */
633 wait_queue_head_t ping_wait; /* Woken upon reception of a ping, and a state change */
635 struct sockaddr_storage my_addr;
636 int my_addr_len;
637 struct sockaddr_storage peer_addr;
638 int peer_addr_len;
640 struct drbd_socket data; /* data/barrier/cstate/parameter packets */
641 struct drbd_socket meta; /* ping/ack (metadata) packets */
642 int agreed_pro_version; /* actually used protocol version */
643 u32 agreed_features;
644 unsigned long last_received; /* in jiffies, either socket */
645 unsigned int ko_count;
647 struct list_head transfer_log; /* all requests not yet fully processed */
649 struct crypto_shash *cram_hmac_tfm;
650 …pto_shash *integrity_tfm; /* checksums we compute, updates protected by connection->data->mutex */
651 …t crypto_shash *peer_integrity_tfm; /* checksums we verify, only accessed from receiver thread */
652 struct crypto_shash *csums_tfm;
653 struct crypto_shash *verify_tfm;
654 void *int_dig_in;
655 void *int_dig_vv;
658 struct drbd_epoch *current_epoch;
659 spinlock_t epoch_lock;
660 unsigned int epochs;
661 atomic_t current_tle_nr; /* transfer log epoch number */
662 unsigned current_tle_writes; /* writes seen within this tl epoch */
664 unsigned long last_reconnect_jif;
666 struct blk_plug receiver_plug;
667 struct drbd_thread receiver;
668 struct drbd_thread worker;
669 struct drbd_thread ack_receiver;
670 struct workqueue_struct *ack_sender;
675 struct drbd_request *req_next; /* DRBD 9: todo.req_next */
676 struct drbd_request *req_ack_pending;
677 struct drbd_request *req_not_net_done;
680 struct drbd_work_queue sender_work;
705 static inline bool has_net_conf(struct drbd_connection *connection) in has_net_conf() argument