<br>In ib_create_fmr_pool() shouldn't we do INIT_HLIST_NODE only if cache is enabled?<br><br><br>proposed patch -<br>-------------------------------------------------------------------------------------------------------------------------------<br>
--- drivers/infiniband/core/fmr_pool.c 2008-02-20 09:38:14.000000000 -0600<br>+++ drivers/infiniband/core/fmr_pool.mod.c 2008-03-06 10:31:44.000000000 -0600<br>@@ -321,7 +321,10 @@<br> fmr->pool = pool;<br>
fmr->remap_count = 0;<br> fmr->ref_count = 0;<br>- INIT_HLIST_NODE(&fmr->cache_node);<br>+<br>+ if (params->cache) {<br>
+ INIT_HLIST_NODE(&fmr->cache_node);<br>+ }<br><br> fmr->fmr = ib_alloc_fmr(pd, params->access, &fmr_attr);<br> if (IS_ERR(fmr->fmr)) {<br>
<br clear="all"><br>-- <br>~s u b b u<br><br>