[ofa-general] Re: [RFC V4 PATCH 4/5] rdma/cma: implement RDMA_CM_EVENT_ADDR_CHANGE notification
Or Gerlitz
ogerlitz at voltaire.com
Wed May 28 23:29:16 PDT 2008
Sean Hefty wrote:
>> + mutex_lock(&id_priv->handler_mutex);
>> + if (id_priv->state == CMA_DESTROYING)
>
> We should probably skip id_priv->state == CMA_DEVICE_REMOVAL as well.
OK
>
>> + printk(KERN_ERR "addr change for device %s used by id %p, notifying\n",
>
> Is KERN_ERR what we want here?
no, I think we can do well with warning or info level
>
>> +static int cma_netdev_callback(struct notifier_block *self, unsigned long
>> event, void *ctx)
>> + mutex_lock(&lock);
>> + list_for_each_entry(cma_dev, &dev_list, list)
>> + list_for_each_entry(id_priv, &cma_dev->id_list, list) {
>> + ret = cma_netdev_change(ndev, id_priv);
>> + if (ret)
>> + break;
>
> Should this be goto (mutex_unlock) instead?
yes it would be better to have it this way
Or
More information about the general
mailing list