/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_receiver.c | 266 struct net_conf *nc; in drbd_alloc_pages() 271 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages() 527 t = rcu_dereference(connection->net_conf)->ping_timeo * HZ/10; in drbd_recv() 593 struct net_conf *nc; in drbd_try_connect() 599 nc = rcu_dereference(connection->net_conf); in drbd_try_connect() 699 struct net_conf *nc; in prepare_listen_socket() 703 nc = rcu_dereference(connection->net_conf); in prepare_listen_socket() 769 struct net_conf *nc; in drbd_wait_for_connect() 772 nc = rcu_dereference(connection->net_conf); in drbd_wait_for_connect() 816 struct net_conf *n in receive_first_packet() [all...] |
H A D | drbd_nl.c | 621 struct net_conf *nc; in drbd_set_role() 691 nc = rcu_dereference(connection->net_conf); in drbd_set_role() 725 nc = connection->net_conf; in drbd_set_role() 1801 struct net_conf *nc; in drbd_adm_attach() 1874 nc = rcu_dereference(connection->net_conf); in drbd_adm_attach() 2294 _check_net_options(struct drbd_connection *connection, struct net_conf *old_net_conf, struct net_conf *new_net_conf) in _check_net_options() 2338 check_net_options(struct drbd_connection *connection, struct net_conf *new_net_conf) in check_net_options() 2345 rv = _check_net_options(connection, rcu_dereference(connection->net_conf), new_net_conf); in check_net_options() 2383 alloc_crypto(struct crypto *crypto, struct net_conf *new_net_con 3584 struct net_conf *net_conf; drbd_adm_dump_connections() local [all...] |
H A D | drbd_proc.c | 220 struct net_conf *nc; in drbd_seq_show() 269 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_seq_show()
|
H A D | drbd_req.c | 554 struct net_conf *nc; in __req_mod() 576 nc = rcu_dereference(connection->net_conf); in __req_mod() 689 nc = rcu_dereference(connection->net_conf); in __req_mod() 976 struct net_conf *nc; in maybe_pull_ahead() 981 nc = rcu_dereference(connection->net_conf); in maybe_pull_ahead() 1693 struct net_conf *nc; in request_timer_fn() 1700 nc = rcu_dereference(connection->net_conf); in request_timer_fn()
|
H A D | drbd_worker.c | 1717 csums_after_crash_only = rcu_dereference(connection->net_conf)->csums_after_crash_only; in use_checksum_based_resync() 1886 struct net_conf *nc; in drbd_start_resync() 1890 nc = rcu_dereference(connection->net_conf); in drbd_start_resync() 2081 struct net_conf *nc; in wait_for_work() 2095 nc = rcu_dereference(connection->net_conf); in wait_for_work() 2150 nc = rcu_dereference(connection->net_conf); in wait_for_work()
|
H A D | drbd_main.c | 729 struct net_conf *nc; in drbd_send_sync_param() 738 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_send_sync_param() 780 struct net_conf *nc; in __drbd_send_protocol() 789 nc = rcu_dereference(connection->net_conf); in __drbd_send_protocol() 855 uuid_flags |= rcu_dereference(peer_device->connection->net_conf)->discard_my_data ? 1 : 0; in _drbd_send_uuids() 1130 use_rle = rcu_dereference(first_peer_device(device)->connection->net_conf)->use_rle; in fill_bitmap_rle_bits() 1864 connection->ko_count = rcu_dereference(connection->net_conf)->ko_count; in drbd_send() 2072 D_ASSERT(device, first_peer_device(device)->connection->net_conf == NULL); in drbd_device_cleanup() 3709 struct net_conf *nc; in drbd_wait_misc() 3714 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_wait_misc() [all...] |
H A D | drbd_int.h | 445 /* Is set when net_conf had two_primaries set while creating this peer_req */ 665 struct mutex conf_update; /* mutex for ready-copy-update of net_conf and disk_conf */ 702 struct net_conf *net_conf; /* content protected by rcu */ member 780 has_net_conf = rcu_dereference(connection->net_conf); in has_net_conf() 2139 struct net_conf *nc; in drbd_get_max_buffers() 2143 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_get_max_buffers()
|
H A D | drbd_state.c | 829 struct net_conf *nc; in is_valid_state() 838 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in is_valid_state() 2056 struct net_conf *old_conf; in w_after_conn_state_ch() 2066 old_conf = connection->net_conf; in w_after_conn_state_ch() 2069 RCU_INIT_POINTER(connection->net_conf, NULL); in w_after_conn_state_ch()
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_receiver.c | 267 struct net_conf *nc; in drbd_alloc_pages() 272 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_alloc_pages() 528 t = rcu_dereference(connection->net_conf)->ping_timeo * HZ/10; in drbd_recv() 594 struct net_conf *nc; in drbd_try_connect() 600 nc = rcu_dereference(connection->net_conf); in drbd_try_connect() 700 struct net_conf *nc; in prepare_listen_socket() 704 nc = rcu_dereference(connection->net_conf); in prepare_listen_socket() 770 struct net_conf *nc; in drbd_wait_for_connect() 773 nc = rcu_dereference(connection->net_conf); in drbd_wait_for_connect() 817 struct net_conf *n in receive_first_packet() [all...] |
H A D | drbd_nl.c | 621 struct net_conf *nc; in drbd_set_role() 691 nc = rcu_dereference(connection->net_conf); in drbd_set_role() 725 nc = connection->net_conf; in drbd_set_role() 1740 struct net_conf *nc; in drbd_adm_attach() 1813 nc = rcu_dereference(connection->net_conf); in drbd_adm_attach() 2238 _check_net_options(struct drbd_connection *connection, struct net_conf *old_net_conf, struct net_conf *new_net_conf) in _check_net_options() 2282 check_net_options(struct drbd_connection *connection, struct net_conf *new_net_conf) in check_net_options() 2289 rv = _check_net_options(connection, rcu_dereference(connection->net_conf), new_net_conf); in check_net_options() 2327 alloc_crypto(struct crypto *crypto, struct net_conf *new_net_con 3528 struct net_conf *net_conf; drbd_adm_dump_connections() local [all...] |
H A D | drbd_proc.c | 220 struct net_conf *nc; in drbd_seq_show() 269 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_seq_show()
|
H A D | drbd_req.c | 566 struct net_conf *nc; in __req_mod() 588 nc = rcu_dereference(connection->net_conf); in __req_mod() 701 nc = rcu_dereference(connection->net_conf); in __req_mod() 987 struct net_conf *nc; in maybe_pull_ahead() 992 nc = rcu_dereference(connection->net_conf); in maybe_pull_ahead() 1705 struct net_conf *nc; in request_timer_fn() 1712 nc = rcu_dereference(connection->net_conf); in request_timer_fn()
|
H A D | drbd_worker.c | 1722 csums_after_crash_only = rcu_dereference(connection->net_conf)->csums_after_crash_only; in use_checksum_based_resync() 1891 struct net_conf *nc; in drbd_start_resync() 1895 nc = rcu_dereference(connection->net_conf); in drbd_start_resync() 2088 struct net_conf *nc; in wait_for_work() 2102 nc = rcu_dereference(connection->net_conf); in wait_for_work() 2157 nc = rcu_dereference(connection->net_conf); in wait_for_work()
|
H A D | drbd_main.c | 719 struct net_conf *nc; in drbd_send_sync_param() 728 nc = rcu_dereference(peer_device->connection->net_conf); in drbd_send_sync_param() 771 struct net_conf *nc; in __drbd_send_protocol() 780 nc = rcu_dereference(connection->net_conf); in __drbd_send_protocol() 846 uuid_flags |= rcu_dereference(peer_device->connection->net_conf)->discard_my_data ? 1 : 0; in _drbd_send_uuids() 1116 use_rle = rcu_dereference(first_peer_device(device)->connection->net_conf)->use_rle; in fill_bitmap_rle_bits() 1834 connection->ko_count = rcu_dereference(connection->net_conf)->ko_count; in drbd_send() 2042 D_ASSERT(device, first_peer_device(device)->connection->net_conf == NULL); in drbd_device_cleanup() 3681 struct net_conf *nc; in drbd_wait_misc() 3686 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_wait_misc() [all...] |
H A D | drbd_int.h | 377 /* Is set when net_conf had two_primaries set while creating this peer_req */ 595 struct mutex conf_update; /* mutex for ready-copy-update of net_conf and disk_conf */ 632 struct net_conf *net_conf; /* content protected by rcu */ member 710 has_net_conf = rcu_dereference(connection->net_conf); in has_net_conf() 2069 struct net_conf *nc; in drbd_get_max_buffers() 2073 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in drbd_get_max_buffers()
|
H A D | drbd_state.c | 829 struct net_conf *nc; in is_valid_state() 838 nc = rcu_dereference(first_peer_device(device)->connection->net_conf); in is_valid_state() 2062 struct net_conf *old_conf; in w_after_conn_state_ch() 2072 old_conf = connection->net_conf; in w_after_conn_state_ch() 2075 RCU_INIT_POINTER(connection->net_conf, NULL); in w_after_conn_state_ch()
|