Home
last modified time | relevance | path

Searched refs:current_epoch (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/block/drbd/
Ddrbd_receiver.c1397 if (connection->current_epoch != epoch) { in drbd_may_finish_epoch()
1778 connection->current_epoch->barrier_nr = p->barrier; in receive_Barrier()
1779 connection->current_epoch->connection = connection; in receive_Barrier()
1780 rv = drbd_may_finish_epoch(connection, connection->current_epoch, EV_GOT_BARRIER_NR); in receive_Barrier()
1806 if (atomic_read(&connection->current_epoch->epoch_size)) { in receive_Barrier()
1824 if (atomic_read(&connection->current_epoch->epoch_size)) { in receive_Barrier()
1825 list_add(&epoch->list, &connection->current_epoch->list); in receive_Barrier()
1826 connection->current_epoch = epoch; in receive_Barrier()
2608 atomic_inc(&connection->current_epoch->epoch_size); in receive_Data()
2659 peer_req->epoch = connection->current_epoch; in receive_Data()
[all …]
Ddrbd_main.c2684 connection->current_epoch = kzalloc(sizeof(struct drbd_epoch), GFP_KERNEL); in conn_create()
2685 if (!connection->current_epoch) in conn_create()
2690 INIT_LIST_HEAD(&connection->current_epoch->list); in conn_create()
2734 kfree(connection->current_epoch); in conn_create()
2746 if (atomic_read(&connection->current_epoch->epoch_size) != 0) in drbd_destroy_connection()
2747 drbd_err(connection, "epoch_size:%d\n", atomic_read(&connection->current_epoch->epoch_size)); in drbd_destroy_connection()
2748 kfree(connection->current_epoch); in drbd_destroy_connection()
Ddrbd_int.h728 struct drbd_epoch *current_epoch; member