-
Notifications
You must be signed in to change notification settings - Fork 68
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
[Deepin-Kernel-SIG] [linux 6.6-y] [Upstream] block: fix 'kmem_cache of name 'bio-108' already exists' #639
[Deepin-Kernel-SIG] [linux 6.6-y] [Upstream] block: fix 'kmem_cache of name 'bio-108' already exists' #639
Conversation
mainline inclusion from mainline-v6.14-rc5 category: bugfix Device mapper bioset often has big bio_slab size, which can be more than 1000, then 8byte can't hold the slab name any more, cause the kmem_cache allocation warning of 'kmem_cache of name 'bio-108' already exists'. Fix the warning by extending bio_slab->name to 12 bytes, but fix output of /proc/slabinfo Reported-by: Guangwu Zhang <[email protected]> Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]> (cherry picked from commit b654f7a51ffb386131de42aa98ed831f8c126546) Signed-off-by: Wentao Guan <[email protected]>
Reviewer's Guide by SourceryThis pull request addresses a kmem_cache allocation warning caused by the Updated class diagram for bio_slab structclassDiagram
class bio_slab {
struct kmem_cache* slab
unsigned int slab_ref
unsigned int slab_size
char name[12]
}
note for bio_slab "'name' field increased from 8 to 12 bytes"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review关键摘要:
是否建议立即修改:
|
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.
Hey @opsiff - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a comment explaining why the size was increased to 12 bytes specifically.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
lgtm :)
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: winnscode The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
mainline inclusion
from mainline-v6.14-rc5
category: bugfix
Device mapper bioset often has big bio_slab size, which can be more than 1000, then 8byte can't hold the slab name any more, cause the kmem_cache allocation warning of 'kmem_cache of name 'bio-108' already exists'.
Fix the warning by extending bio_slab->name to 12 bytes, but fix output of /proc/slabinfo
Reported-by: Guangwu Zhang [email protected]
Link: https://lore.kernel.org/r/[email protected]
(cherry picked from commit b654f7a51ffb386131de42aa98ed831f8c126546)
Summary by Sourcery
Bug Fixes: