IB/hfi1: Prevent link down request double queuing
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Sat, 29 Jul 2017 15:43:55 +0000 (08:43 -0700)
committerDoug Ledford <dledford@redhat.com>
Mon, 31 Jul 2017 19:18:38 +0000 (15:18 -0400)
commit626c077c025f9da6dce809b5a8300ed44ef02b6f
tree2bba6ede91b81161765f437891e36875a27f27f9
parent71d47008ca1b2ab10e0432e72e572c7ce5d8d63b
IB/hfi1: Prevent link down request double queuing

When link interrupts occur, multiple link down requests
could be queued up when only one is needed. This could get
the hfi1 out of sync with its link partner during LNI.

Only allow one link down request to be queued at any one time.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/hfi.h