Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
ecf6f24c
Unverified
Commit
ecf6f24c
authored
Jul 24, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make fellow_io_fini() idempotent
during error paths, we might call it multiple times
parent
a378525e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
fellow_io_aio.c
src/fellow_io_aio.c
+3
-0
fellow_io_threads.c
src/fellow_io_threads.c
+3
-0
fellow_io_uring.c
src/fellow_io_uring.c
+3
-0
No files found.
src/fellow_io_aio.c
View file @
ecf6f24c
...
...
@@ -161,6 +161,9 @@ fellow_io_init(int fd, unsigned entries, void *base, size_t len,
void
fellow_io_fini
(
fellow_ioctx_t
**
ctxp
)
{
if
(
*
ctxp
==
NULL
)
return
;
unsigned
entries
=
fellow_io_entries
(
*
ctxp
);
struct
fellow_io_aio_ctx
*
ctx
;
...
...
src/fellow_io_threads.c
View file @
ecf6f24c
...
...
@@ -156,6 +156,9 @@ fellow_io_fini(fellow_ioctx_t **ctxp)
{
struct
fellow_io_thread
*
ctx
;
if
(
*
ctxp
==
NULL
)
return
;
TAKE_OBJ_NOTNULL
(
ctx
,
(
void
**
)
ctxp
,
FELLOW_IO_THREAD_MAGIC
);
struct
fellow_io_status
results
[
ctx
->
free
->
nbits
];
...
...
src/fellow_io_uring.c
View file @
ecf6f24c
...
...
@@ -320,6 +320,9 @@ fellow_io_fini(fellow_ioctx_t **ctxp)
{
struct
fellow_io_uring
*
ctx
;
if
(
*
ctxp
==
NULL
)
return
;
TAKE_OBJ_NOTNULL
(
ctx
,
(
void
**
)
ctxp
,
FELLOW_IO_URING_MAGIC
);
struct
fellow_io_status
results
[
ctx
->
entries
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment