Re: [PATCH 02/30] IB/core: Add kref to IB devices

2015-02-19 Thread Haggai Eran
On 20/02/2015 00:02, Somnath Kotur wrote: From: Matan Barak mat...@mellanox.com Previously. we used device_mutex lock in order to protect the device's list. That means that in order to guarantee a device isn't freed while we use it, we had to lock all devices. Adding a kref per IB

Re: [PATCH 02/30] IB/core: Add kref to IB devices

2015-02-19 Thread Matan Barak
On Thu, Feb 19, 2015 at 12:57 PM, Haggai Eran hagg...@mellanox.com wrote: On 20/02/2015 00:02, Somnath Kotur wrote: From: Matan Barak mat...@mellanox.com Previously. we used device_mutex lock in order to protect the device's list. That means that in order to guarantee a device isn't freed

[PATCH 02/30] IB/core: Add kref to IB devices

2015-02-18 Thread Somnath Kotur
From: Matan Barak mat...@mellanox.com Previously. we used device_mutex lock in order to protect the device's list. That means that in order to guarantee a device isn't freed while we use it, we had to lock all devices. Adding a kref per IB device. Before an IB device is unregistered, we wait

[PATCH 02/30] IB/core: Add kref to IB devices

2015-02-18 Thread Somnath Kotur
From: Matan Barak mat...@mellanox.com Previously. we used device_mutex lock in order to protect the device's list. That means that in order to guarantee a device isn't freed while we use it, we had to lock all devices. Adding a kref per IB device. Before an IB device is unregistered, we wait