Lines Matching refs:act_run_data
39 struct act_run_data { struct
46 static struct act_run_data *act_run_data; argument
343 fio_mutex_down(act_run_data->mutex); in get_act_ref()
344 act_run_data->pending++; in get_act_ref()
345 fio_mutex_up(act_run_data->mutex); in get_act_ref()
391 for (i = 0; i < act_run_data->nr_slices; i++) in act_show_all_stats()
392 fails += show_slice(&act_run_data->slices[i], i + 1); in act_show_all_stats()
402 fio_mutex_down(act_run_data->mutex); in put_act_ref()
404 if (!act_run_data->slices) { in put_act_ref()
405 act_run_data->slices = calloc(apd->nr_slices, sizeof(struct act_slice)); in put_act_ref()
406 act_run_data->nr_slices = apd->nr_slices; in put_act_ref()
410 struct act_slice *dst = &act_run_data->slices[slice]; in put_act_ref()
419 if (!--act_run_data->pending) in put_act_ref()
422 fio_mutex_up(act_run_data->mutex); in put_act_ref()
469 act_run_data = calloc(1, sizeof(*act_run_data)); in act_register()
470 act_run_data->mutex = fio_mutex_init(FIO_MUTEX_UNLOCKED); in act_register()
482 fio_mutex_remove(act_run_data->mutex); in act_unregister()
483 free(act_run_data->slices); in act_unregister()
484 free(act_run_data); in act_unregister()
485 act_run_data = NULL; in act_unregister()