]> granicus.if.org Git - zfs/commit
arc_evict, arc_evict_ghost: reduce stack usage using kmem_zalloc
authorChris Dunlop <chris@onthe.net.au>
Tue, 5 May 2015 23:59:17 +0000 (09:59 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 8 May 2015 21:14:35 +0000 (14:14 -0700)
commit16fcdea36340c658b4557fd34a74915fd618f7a6
tree402c5b7b0a8dae692647fe19950b2d2e3fbe38e0
parent63e3a8616b200dc36fe9d298a466bb5c25b58132
arc_evict, arc_evict_ghost: reduce stack usage using kmem_zalloc

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>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3377
module/zfs/arc.c