IB/ipath: Fix hang on module unload
authorYannick Cote <yannick.cote@qlogic.com>
Tue, 30 Sep 2008 04:24:04 +0000 (21:24 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 30 Sep 2008 04:24:04 +0000 (21:24 -0700)
commite441d6342890838bfc6d64ca2f0964aca08ae2a2
tree94a3fa3aba43ddf3b7381435c347d1699e755ab1
parent940358967599ba9057b3c51ba906e1cd5b984729
IB/ipath: Fix hang on module unload

Handle the case where posting a send is requested when the link is
down.  This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1117>.

Signed-off-by: Yannick Cote <yannick.cote@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_verbs.c