IB/iser: Fix catastrophic error flow hang
authorSagi Grimberg <sagig@mellanox.com>
Sun, 7 Dec 2014 14:09:53 +0000 (16:09 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:11:44 +0000 (18:11 -0800)
commit16df2a26fb3efb52f066098cdbd0f81c8378d861
tree141c87f9746fe581f1b2938abaf5f152af92cef4
parentf4641ef701d41929e0674f114e47a6824761e5b1
IB/iser: Fix catastrophic error flow hang

In case of the HCA going into catasrophic error flow, the
beacon post_send is likely to fail, so surely there will
be no completion for it.

In this case, use a best effort approach and don't wait for beacon
completion if we failed to post the send.

Reported-by: Alex Tabachnik <alext@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_verbs.c