Initial commit for fix-stack-dbuf_hold_impl topic branch

This commit is contained in:
Brian Behlendorf 2010-08-02 14:10:28 -07:00
parent b3c82b1b18
commit c7786edbf0
2 changed files with 12 additions and 0 deletions

1
.topdeps Normal file
View File

@ -0,0 +1 @@
master

11
.topmsg Normal file
View File

@ -0,0 +1,11 @@
From: Brian Behlendorf <behlendorf1@llnl.gov>
Subject: [PATCH] fix stack dbuf_hold_impl
This commit preserves the recursive function dbuf_hold_impl() but moves
the local variables and function arguments to the heap to minimize
the stack frame size. Enough space is initially allocated on the
stack for 20 levels of recursion. This technique was based on commit
34229a2f2ac07363f64ddd63e014964fff2f0671 which reduced stack usage of
traverse_visitbp().
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>