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
5ac1d298
Unverified
Commit
5ac1d298
authored
Sep 30, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle EINTR for io_uring
Fixes #26 specifically, we are still missing similar handling in other places.
parent
db7ccd60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
fellow_io_uring.c
src/fellow_io_uring.c
+9
-4
No files found.
src/fellow_io_uring.c
View file @
5ac1d298
...
...
@@ -541,6 +541,9 @@ fellow_io_wait_completions(fellow_ioctx_t *ctxp,
if
(
cb
&&
advance
)
cb
(
priv
,
results
-
advance
,
advance
);
assert
(
ctx
->
outstanding
>=
advance
);
ctx
->
outstanding
-=
advance
;
/*
* XXX if we are called from under a lock (for the multithreaded
* case in fellow_cache.c) we should unlock while waiting,
...
...
@@ -560,12 +563,14 @@ fellow_io_wait_completions(fellow_ioctx_t *ctxp,
else
r
=
0
;
//lint -e{731} XXX
XXXAN
(
r
>=
0
);
if
(
r
<
0
)
{
assert
(
errno
==
EINTR
);
continue
;
}
assert
(
r
>=
0
);
u
=
(
typeof
(
u
))
r
;
assert
(
ctx
->
outstanding
>=
advance
);
ctx
->
outstanding
-=
advance
;
assert
(
u
<=
ctx
->
unsubmitted
);
ctx
->
outstanding
+=
u
;
ctx
->
unsubmitted
-=
u
;
...
...
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