android_kernel_oneplus_msm8998/drivers/infiniband/ulp
Jenny Derzhavetz 48f447bceb iser-target: Rework connection termination
commit 6d1fba0c2cc7efe42fd761ecbba833ed0ea7b07e upstream.

When we receive an event that triggers connection termination,
we have a a couple of things we may want to do:
1. In case we are already terminating, bailout early
2. In case we are connected but not bound, disconnect and schedule
   a connection cleanup silently (don't reinstate)
3. In case we are connected and bound, disconnect and reinstate the connection

This rework fixes a bug that was detected against a mis-behaved
initiator which rejected our rdma_cm accept, in this stage the
isert_conn is no bound and reinstate caused a bogus dereference.

What's great about this is that we don't need the
post_recv_buf_count anymore, so get rid of it.

Signed-off-by: Jenny Derzhavetz <jennyf@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-12 09:09:03 -07:00
..
ipoib IB/ipoib: fix for rare multicast join race condition 2016-04-12 09:08:59 -07:00
iser IB/iser: use sector_div instead of do_div 2015-12-07 16:42:33 -05:00
isert iser-target: Rework connection termination 2016-04-12 09:09:03 -07:00
srp IB/srp: Fix srp_map_sg_fr() 2015-12-07 17:20:11 -05:00
srpt IB/srpt: Simplify srpt_handle_tsk_mgmt() 2016-04-12 09:08:53 -07:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00