-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel-6.1: add patch for blkio with cgroupsv1 #225
Conversation
packages/kernel-6.1/1006-blk-cgroup-Return-ENOMEM-directly-in-blkcg_css_alloc.patch
Outdated
Show resolved
Hide resolved
packages/kernel-6.1/1008-blk-cgroup-don-t-update-io-stat-for-root-cgroup.patch
Outdated
Show resolved
Hide resolved
packages/kernel-6.1/1009-blk-throttle-Fix-io-statistics-for-cgroup-v1.patch
Outdated
Show resolved
Hide resolved
packages/kernel-6.1/1007-blk-cgroup-Optimize-blkcg_rstat_flush.patch
Outdated
Show resolved
Hide resolved
Signed-off-by: Kyle Sessions <kssessio@amazon.com>
Updated PR to simplify the patches to focus on the fix with blkio when using cgroupsv1. |
cpu = get_cpu(); | ||
bis = per_cpu_ptr(bio->bi_blkg->iostat_cpu, cpu); | ||
flags = u64_stats_update_begin_irqsave(&bis->sync); | ||
@@ -1984,8 +1987,7 @@ void blk_cgroup_bio_start(struct bio *bio) | ||
bis->cur.ios[rwd]++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bcressey were these lines added to make the cherry-pick/port-back happy? I saw they were in what was patch 1008.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bcressey were these lines added to make the cherry-pick/port-back happy? I saw they were in what was patch 1008.
The call to cgroup_rstat_updated
was what changed, to match the prior code in 6.1, which didn't have the lockless change.
There was also a bit of context that needed to be removed to relocate the guard to the top of the function.
Issue number:
N/A
Description of changes:
kernel-6.1: add patch for blkio when using cgroupsv1
Testing done:
With commit:
Without commit:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.