Commit 00835dce authored by Bijan Mottahedeh's avatar Bijan Mottahedeh Committed by Jens Axboe

io_uring: make percpu_ref_release names consistent

Make the percpu ref release function names consistent between rsrc data
and nodes.
Signed-off-by: default avatarBijan Mottahedeh <bijan.mottahedeh@oracle.com>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1ad555c6
...@@ -7344,7 +7344,7 @@ static void __io_sqe_files_unregister(struct io_ring_ctx *ctx) ...@@ -7344,7 +7344,7 @@ static void __io_sqe_files_unregister(struct io_ring_ctx *ctx)
#endif #endif
} }
static void io_rsrc_ref_kill(struct percpu_ref *ref) static void io_rsrc_data_ref_zero(struct percpu_ref *ref)
{ {
struct fixed_rsrc_data *data; struct fixed_rsrc_data *data;
...@@ -7415,7 +7415,7 @@ static struct fixed_rsrc_data *alloc_fixed_rsrc_data(struct io_ring_ctx *ctx) ...@@ -7415,7 +7415,7 @@ static struct fixed_rsrc_data *alloc_fixed_rsrc_data(struct io_ring_ctx *ctx)
if (!data) if (!data)
return NULL; return NULL;
if (percpu_ref_init(&data->refs, io_rsrc_ref_kill, if (percpu_ref_init(&data->refs, io_rsrc_data_ref_zero,
PERCPU_REF_ALLOW_REINIT, GFP_KERNEL)) { PERCPU_REF_ALLOW_REINIT, GFP_KERNEL)) {
kfree(data); kfree(data);
return NULL; return NULL;
...@@ -7804,7 +7804,7 @@ static void io_rsrc_put_work(struct work_struct *work) ...@@ -7804,7 +7804,7 @@ static void io_rsrc_put_work(struct work_struct *work)
} }
} }
static void io_rsrc_data_ref_zero(struct percpu_ref *ref) static void io_rsrc_node_ref_zero(struct percpu_ref *ref)
{ {
struct fixed_rsrc_ref_node *ref_node; struct fixed_rsrc_ref_node *ref_node;
struct fixed_rsrc_data *data; struct fixed_rsrc_data *data;
...@@ -7848,7 +7848,7 @@ static struct fixed_rsrc_ref_node *alloc_fixed_rsrc_ref_node( ...@@ -7848,7 +7848,7 @@ static struct fixed_rsrc_ref_node *alloc_fixed_rsrc_ref_node(
if (!ref_node) if (!ref_node)
return NULL; return NULL;
if (percpu_ref_init(&ref_node->refs, io_rsrc_data_ref_zero, if (percpu_ref_init(&ref_node->refs, io_rsrc_node_ref_zero,
0, GFP_KERNEL)) { 0, GFP_KERNEL)) {
kfree(ref_node); kfree(ref_node);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment