IB/uverbs: Don't serialize with ib_uverbs_idr_mutex
[linux-2.6.git] / include / rdma / ib_verbs.h
index 7ced208edacf81131aca4541c5419195e0320171..ee1f3a355666dbddaa388fc3d613bc329c24c9d3 100644 (file)
@@ -697,8 +697,12 @@ struct ib_ucontext {
 struct ib_uobject {
        u64                     user_handle;    /* handle given to us by userspace */
        struct ib_ucontext     *context;        /* associated user context */
+       void                   *object;         /* containing object */
        struct list_head        list;           /* link to context's list */
        u32                     id;             /* index into kernel idr */
+       struct kref             ref;
+       struct rw_semaphore     mutex;          /* protects .live */
+       int                     live;
 };
 
 struct ib_umem {