]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
i40iw: Receive notification events correctly
authorShiraz Saleem <shiraz.saleem@intel.com>
Thu, 25 Aug 2016 16:53:24 +0000 (11:53 -0500)
committerDoug Ledford <dledford@redhat.com>
Fri, 26 Aug 2016 13:59:13 +0000 (09:59 -0400)
commitb71121b4b70a995c0b794026e84c880c4f26c361
tree7bfef02890f4ea2da4724aecc52ecac90b050885
parent866e0f4d73390ee6f5cd68aa92cf74eef3a2b0f2
i40iw: Receive notification events correctly

Device notifications are not received after the first interface is
closed; since there is an unregister for notifications on every
interface close. Correct this by unregistering for device
notifications only when the last interface is closed. Also, make
all operations on the i40iw_notifiers_registered atomic as it
can be read/modified concurrently.

Fixes: 8e06af711bf2 ("i40iw: add main, hdr, status")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_main.c