Lines Matching refs:kref
324 kref_get(&req->kref); in seq_print_resource_transfer_log_summary()
329 if (kref_put(&req->kref, drbd_req_destroy)) in seq_print_resource_transfer_log_summary()
374 if (!connection || !kref_get_unless_zero(&connection->kref)) in in_flight_summary_show()
418 kref_put(&connection->kref, drbd_destroy_connection); in in_flight_summary_show()
432 void *data, struct kref *kref, in drbd_single_open() argument
433 void (*release)(struct kref *)) in drbd_single_open() argument
448 && kref_get_unless_zero(kref)) in drbd_single_open()
454 kref_put(kref, release); in drbd_single_open()
464 &resource->kref, drbd_destroy_resource); in in_flight_summary_open()
470 kref_put(&resource->kref, drbd_destroy_resource); in in_flight_summary_release()
587 &connection->kref, drbd_destroy_connection); in callback_history_open()
593 kref_put(&connection->kref, drbd_destroy_connection); in callback_history_release()
634 &connection->kref, drbd_destroy_connection); in connection_oldest_requests_open()
640 kref_put(&connection->kref, drbd_destroy_connection); in connection_oldest_requests_release()
787 &device->kref, drbd_destroy_device); \
792 kref_put(&device->kref, drbd_destroy_device); \