]> git.baikalelectronics.ru Git - 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)
commit56ddfc1ae610dd5a86ebe7ecdba1aa6040b1a5e9
tree7bfef02890f4ea2da4724aecc52ecac90b050885
parentedbe417fe7b0be42dc45cf2828c3b8045b15fe10
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: e4eae5582966 ("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