]> 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)
commit4c7cfc34baadb4ea4a34dd81d7a52754ec9b1775
tree7bfef02890f4ea2da4724aecc52ecac90b050885
parentdb3bd62600242a8e39e37be7d1c8ea1fb2ee4479
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: 2a344360ec7f ("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