Skip to content
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

arc_evict, arc_evict_ghost: reduce stack usage using kmem_zalloc #3378

Closed
wants to merge 1 commit into from

Conversation

chrisrd
Copy link
Contributor

@chrisrd chrisrd commented May 6, 2015

With debugging enabled and depending on your kernel config, the size of arc_buf_hdr_t can blow out the stack of arc_evict() and arc_evict_ghost() to greater than 1024 bytes. Let's avoid this.

Signed-off-by: Chris Dunlop chris@onthe.net.au
Closes #3377

With debugging enabled and depending on your kernel config, the size of
arc_buf_hdr_t can blow out the stack of arc_evict() and arc_evict_ghost()
to greater than 1024 bytes. Let's avoid this.

Signed-off-by: Chris Dunlop <chris@onthe.net.au>
Closes openzfs#3377
@behlendorf
Copy link
Contributor

Nice catch. LGTM.

@behlendorf
Copy link
Contributor

Merged as:

16fcdea arc_evict, arc_evict_ghost: reduce stack usage using kmem_zalloc

@behlendorf behlendorf closed this May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arc_evict() stack size
2 participants