From f3f33656886b49c4b9e2275a3e25d8bb020e648c Mon Sep 17 00:00:00 2001 From: Konrad Sztyber Date: Mon, 17 Oct 2022 15:08:26 +0200 Subject: [PATCH] accel: correct spdk_accel_completion_cb's description The callback is executed with the opaque argument specified by the user, not accel_task. Signed-off-by: Konrad Sztyber Change-Id: I6f4388d8c4ceb37d4df174a6f4c0529012fe1f28 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15020 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: Krzysztof Karas Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris --- include/spdk/accel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdk/accel.h b/include/spdk/accel.h index 4840daf6a..1423c8f2f 100644 --- a/include/spdk/accel.h +++ b/include/spdk/accel.h @@ -34,10 +34,10 @@ enum accel_opcode { /** * Acceleration operation callback. * - * \param ref 'accel_task' passed to the corresponding spdk_accel_submit* call. + * \param cb_arg Callback argument specified in the spdk_accel_submit* call. * \param status 0 if it completed successfully, or negative errno if it failed. */ -typedef void (*spdk_accel_completion_cb)(void *ref, int status); +typedef void (*spdk_accel_completion_cb)(void *cb_arg, int status); /** * Acceleration framework finish callback.