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
921c864c
Unverified
Commit
921c864c
authored
Dec 21, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regionlist: For pre-allocation, do not wait for the buddy
parent
3c880f7c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
fellow_log.c
src/fellow_log.c
+1
-1
fellow_regionlist.h
src/fellow_regionlist.h
+12
-0
No files found.
src/fellow_log.c
View file @
921c864c
...
...
@@ -6655,7 +6655,7 @@ fellow_log_dle_submit(struct fellow_fd *ffd,
if
(
prealloc
==
NULL
&&
ffd
->
logbuf
->
regions_to_free
==
NULL
&&
prep
->
tofree
.
n
)
{
prealloc
=
regionlist_alloc
(
ffd
->
membuddy
);
prealloc
=
regionlist_alloc
_nowait
(
ffd
->
membuddy
);
}
AZ
(
pthread_mutex_lock
(
&
ffd
->
logmtx
));
...
...
src/fellow_regionlist.h
View file @
921c864c
...
...
@@ -216,6 +216,18 @@ regionlist_alloc(buddy_t *membuddy)
return
(
regionlist_init
(
alloc
,
membuddy
));
}
static
struct
regionlist
*
regionlist_alloc_nowait
(
buddy_t
*
membuddy
)
{
struct
buddy_ptr_page
alloc
;
alloc
=
buddy_alloc1_ptr_page
(
membuddy
,
regl_bits
,
regl_bits_cram
);
if
(
alloc
.
ptr
==
NULL
)
return
(
NULL
);
return
(
regionlist_init
(
alloc
,
membuddy
));
}
static
unsigned
regionlist_used
(
const
struct
regionlist
*
rl
)
{
...
...
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