commit | eb9d3cd5ce2828fbb99ed7270089ea152c8f64b3 | [log] [tgz] |
---|---|---|
author | Roland Dreier <rolandd@cisco.com> | Tue Sep 27 15:07:25 2005 -0700 |
committer | Roland Dreier <rolandd@cisco.com> | Mon Oct 17 15:20:25 2005 -0700 |
tree | 2d0de42bc6c7777c66ee76d5817312bcfd161718 | |
parent | 6b73597e7062118c0549c2702bfb7d273518c906 [diff] |
[IB] uverbs: Fix up resource creation error paths By waiting to add resources to our lists until after the last operation that can fail, we don't have to remove them from their lists in the error path. Also, we should hold the idr mutex until we know whether resource creation has succeed or failed, to avoid someone finding a resource in our table before we're ready. Loosely based on work by Robert Walsh <rjwalsh@pathscale.com>. Signed-off-by: Roland Dreier <rolandd@cisco.com>