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()
424 void *data, struct kref *kref, in drbd_single_open() argument
425 void (*release)(struct kref *)) in drbd_single_open() argument
440 && kref_get_unless_zero(kref)) in drbd_single_open()
446 kref_put(kref, release); in drbd_single_open()
456 &resource->kref, drbd_destroy_resource); in in_flight_summary_open()
462 kref_put(&resource->kref, drbd_destroy_resource); in in_flight_summary_release()
579 &connection->kref, drbd_destroy_connection); in callback_history_open()
585 kref_put(&connection->kref, drbd_destroy_connection); in callback_history_release()
626 &connection->kref, drbd_destroy_connection); in connection_oldest_requests_open()
632 kref_put(&connection->kref, drbd_destroy_connection); in connection_oldest_requests_release()
779 &device->kref, drbd_destroy_device); \
784 kref_put(&device->kref, drbd_destroy_device); \