summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-09-27 15:07:25 -0700
committerRoland Dreier <rolandd@cisco.com>2005-10-17 15:20:25 -0700
commiteb9d3cd5ce2828fbb99ed7270089ea152c8f64b3 (patch)
tree2d0de42bc6c7777c66ee76d5817312bcfd161718 /include
parent6b73597e7062118c0549c2702bfb7d273518c906 (diff)
downloadblackbird-op-linux-eb9d3cd5ce2828fbb99ed7270089ea152c8f64b3.tar.gz
blackbird-op-linux-eb9d3cd5ce2828fbb99ed7270089ea152c8f64b3.zip
[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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud