[openib-general] [PATCH] [CM] 1/6 core kernel changes to bind cm_id's to a device
Roland Dreier
rolandd at cisco.com
Tue Sep 6 17:46:02 PDT 2005
> +static struct ib_ucm {
> + struct semaphore mutex;
> + struct idr ctx_id_table;
> + struct list_head device_list;
> +} ucm;
Just out of curiousity, why put these in a struct? It seems like you
might as well just use three static variables. You could even use
DEFINE_IDR() and avoid a call to idr_init()...
- R.
More information about the general
mailing list