]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Reference count completion channels
authorRoland Dreier <rolandd@cisco.com>
Tue, 27 Mar 2007 17:04:46 +0000 (10:04 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 27 Mar 2007 17:04:46 +0000 (10:04 -0700)
commit3cfc82635e9ffa7d9aaa3c1af32266908a3b7158
tree1dd65a28f83310db110ac7ad2bcf690b30a79bd1
parent05d8884b025e8d7d6dc25b9e89a94a67b30cf192
Reference count completion channels

Keep a reference count in completion channel structure, so that
ibv_destroy_comp_channel() can return EBUSY if a consumer tries to
destroy a channel that still has CQs attached.

Suggested by Dotan Barak <dotanb@mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
include/infiniband/verbs.h
src/cmd.c
src/device.c
src/verbs.c