]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit237a6c2a17ad1a1a58aaa2768e82f6dd4e54d890
tree53ff04e53d41f5225f68ec19dfe0ed26ae173be8
parenta83003decfe501912315a27d93a8d000d11d7f25
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