winverbs: release CM interface only once per reference
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 29 Apr 2009 23:02:09 +0000 (23:02 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 29 Apr 2009 23:02:09 +0000 (23:02 +0000)
commitf6f8dd2c34374692e016dda03c04ae69f8f82465
tree49f4370ddf745b609bec6130f40c57030b3256d9
parent98882b002e33c7111f4667b8b402aa9bef92dc32
winverbs: release CM interface only once per reference

The CM interface is not bound to a device, and is only acquired once by the winverbs driver.  Release the CM interface only once after all devices have been removed, not once per hardware device.

This should fix issues enabling/disabling HCA drivers with multiple HCAs present in a single system.

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