mad: deregister MR earlier in destroy path
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 May 2009 17:17:54 +0000 (17:17 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 May 2009 17:17:54 +0000 (17:17 +0000)
commit2fa29f0de861f1ba011c139b754c79d873170218
treee9c585fe7d9654c98da95b491d7be8f7bdfe356a
parent6e1f85661ac4c3d43b32daaee758e5d1982add00
mad: deregister MR earlier in destroy path

When restarting the stack, the MAD pool tries to deregister
its memory during the cleanup phase.  This results in an
error because of an invalid h_mr handle.  Fix the error by
deregistering the memory during the destroying callback.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2170 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
core/al/kernel/al_mad_pool.c