Re: [PATCH for-next V7 2/6] IB/uverbs: Fix race between ib_uverbs_open and remove_one

2015-08-04 Thread Jason Gunthorpe
On Tue, Aug 04, 2015 at 05:03:24PM +0300, Yishai Hadas wrote: > Signed-off-by: Yishai Hadas > Signed-off-by: Shachar Raindel > drivers/infiniband/core/uverbs.h |3 +- > drivers/infiniband/core/uverbs_main.c | 43 > +++-- > 2 files changed, 32 insertions(+

[PATCH for-next V7 2/6] IB/uverbs: Fix race between ib_uverbs_open and remove_one

2015-08-04 Thread Yishai Hadas
Fixes: 2a72f212263701b927559f6850446421d5906c41 ("IB/uverbs: Remove dev_table") Before this commit there was a device look-up table that was protected by a spin_lock used by ib_uverbs_open and by ib_uverbs_remove_one. When it was dropped and container_of was used instead, it enabled the race with