Re: [PATCH for-next V4 1/5] IB/uverbs: Fix reference counting usage of event files

2015-06-11 Thread Jason Gunthorpe
On Thu, Jun 11, 2015 at 03:56:50PM +0300, Yishai Hadas wrote: > > - file->async_file = filp->private_data; > - > - INIT_IB_EVENT_HANDLER(&file->event_handler, file->device->ib_dev, > - ib_uverbs_event_handler); > - ret = ib_register_event_handler(&file->event

[PATCH for-next V4 1/5] IB/uverbs: Fix reference counting usage of event files

2015-06-11 Thread Yishai Hadas
Fix the reference counting usage to be handled in the event file creation/destruction function, instead of being done by the caller. This is done for both async/non-async event files. Based on Jason Gunthorpe report at https://www.mail-archive.com/ linux-rdma@vger.kernel.org/msg24680.html: "The ex