iser-target: avoid posting a recv buffer twice
authorSagi Grimberg <sagi@grimberg.me>
Wed, 22 Mar 2017 15:07:30 +0000 (17:07 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 31 Mar 2017 03:35:50 +0000 (20:35 -0700)
commit7a56dc8888be23f44158a85b92da45d545cbf548
tree53ff04e53d41f5225f68ec19dfe0ed26ae173be8
parent555a65f66c3c4d9dd46a565418b0b655d861a723
iser-target: avoid posting a recv buffer twice

We pre-allocate our send-queues and might overflow them
in case we have multi work-request operations which tend
to occur for large RDMA transfers over devices with limited
allowed sg elements. When we get to a queue-full condition
we might retry again later, so track our receive buffers
so we don't repost them for a retry case.

Reported-by: Potnuri Bharat Teja <bharat@chelsio.com>
Tested-by: Potnuri Bharat Teja <bharat@chelsio.com>
Reviewed-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/infiniband/ulp/isert/ib_isert.h