]> git.baikalelectronics.ru Git - kernel.git/commit
iser-target: Remove an atomic operation from the IO path
authorSagi Grimberg <sagig@mellanox.com>
Tue, 2 Dec 2014 14:57:43 +0000 (16:57 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Dec 2014 07:32:31 +0000 (23:32 -0800)
commite1c7719009e49c0c0464848798322e398246109d
treea39a28aae26af3b21256a3cdbcdddaba392c7491
parent6d241b466987484eb4c775c5762f2a9e007b966f
iser-target: Remove an atomic operation from the IO path

In order to know that we consumed all the connection completions
we maintain atomic post_send_buf_count for each IO post send. But
we can know that if we post a "beacon" (zero length RECV work request)
after we move the QP into error state and the target does not serve
any new IO. When we consume it, we know we finished all the connection
completion and we can go ahead and destroy stuff.

In error completion handler we now just need to check for ISERT_BEACON_WRID
to arrive and then wait for session commands to cleanup and complete
conn_wait_comp_err.

We reserve another CQ and QP entries to fit the zero length post recv.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/infiniband/ulp/isert/ib_isert.h