Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
06a8693b
Commit
06a8693b
authored
Aug 10, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Add a time_stat for blocked on key cache flush
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
790666c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs.h
+1
-0
fs/bcachefs/btree_trans_commit.c
fs/bcachefs/btree_trans_commit.c
+4
-0
No files found.
fs/bcachefs/bcachefs.h
View file @
06a8693b
...
...
@@ -447,6 +447,7 @@ BCH_DEBUG_PARAMS_DEBUG()
x(blocked_journal_low_on_space) \
x(blocked_journal_low_on_pin) \
x(blocked_journal_max_in_flight) \
x(blocked_key_cache_flush) \
x(blocked_allocate) \
x(blocked_allocate_open_bucket) \
x(blocked_write_buffer_full) \
...
...
fs/bcachefs/btree_trans_commit.c
View file @
06a8693b
...
...
@@ -973,9 +973,13 @@ int bch2_trans_commit_error(struct btree_trans *trans, unsigned flags,
bch2_trans_unlock
(
trans
);
trace_and_count
(
c
,
trans_blocked_journal_reclaim
,
trans
,
trace_ip
);
track_event_change
(
&
c
->
times
[
BCH_TIME_blocked_key_cache_flush
],
true
);
wait_event_freezable
(
c
->
journal
.
reclaim_wait
,
(
ret
=
journal_reclaim_wait_done
(
c
)));
track_event_change
(
&
c
->
times
[
BCH_TIME_blocked_key_cache_flush
],
false
);
if
(
ret
<
0
)
break
;
...
...
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