NTB: Fix ntb_transport link down race
authorJon Mason <jon.mason@intel.com>
Mon, 9 Sep 2013 20:39:55 +0000 (13:39 -0700)
committerJon Mason <jon.mason@intel.com>
Wed, 20 Nov 2013 16:57:32 +0000 (09:57 -0700)
commitfca4d5188c1123ff63205e35e2c5f551a21d30c4
tree736653a1d5d33bd0e7616f2858cb9f54780de021
parent9739047380a4a1a9f3eba4deea2f5978703b4ecb
NTB: Fix ntb_transport link down race

A WARN_ON is being hit in ntb_qp_link_work due to the NTB transport link
being down while the ntb qp link is still active.  This is caused by the
transport link being brought down prior to the qp link worker thread
being terminated.  To correct this, shutdown the qp's prior to bringing
the transport link down.  Also, only call the qp worker thread if it is
in interrupt context, otherwise call the function directly.

Signed-off-by: Jon Mason <jon.mason@intel.com>
drivers/ntb/ntb_transport.c