Files
scst/iscsi-scst/kernel
Bart Van Assche 175463ca84 isert-scst: Fix race condition between login request and scst teardown flow
On scst teardown we call rdma_disconnect() on all connections.
this moves the qps to error state and flushes all the wc, including
the drain wc which will results in kref_put of the connection.

In a race condition with the connection request, we might be only in
the init stage of the ref, and calling kref_put will result in refcount
0 and freeing the connection while establishing it.

Call the first kref_get before rdma_accept() to prevent this race.

Signed-off-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Yan Burman <yanb@mellanox.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2015-08-27 17:53:32 +00:00
..
2015-08-25 02:57:51 +00:00
2015-03-19 00:01:03 +00:00
2015-08-25 02:57:51 +00:00
2015-03-19 00:01:03 +00:00
2015-08-25 02:57:51 +00:00
2015-08-25 02:56:08 +00:00
2015-06-12 16:15:45 +00:00
2015-06-10 15:35:26 +00:00
2015-08-25 02:57:51 +00:00
2015-08-25 02:57:51 +00:00