OSDN Git Service

IB/iser: Use beacon to indicate all completions were consumed
authorSagi Grimberg <sagig@mellanox.com>
Wed, 1 Oct 2014 11:02:10 +0000 (14:02 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 9 Oct 2014 07:06:07 +0000 (00:06 -0700)
commitff3dd52d267165347d6f92a90016e692d074a00c
tree2edd94cf4b5c3974e6f475e7b82714e9367b09fc
parent6aabfa76f5e5281e5db128a34420d8f33b8574f7
IB/iser: Use beacon to indicate all completions were consumed

Avoid post_send counting (atomic) in the IO path just to keep track of
how many completions we need to consume.  Use a beacon post to indicate
that all prior posts completed.

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/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_verbs.c