summaryrefslogtreecommitdiffstats
path: root/crypto/khazad.c
diff options
context:
space:
mode:
authorBart Van Assche2014-10-19 17:05:33 +0200
committerNicholas Bellinger2014-10-28 21:55:08 +0100
commitab477c1ff5e0a744c072404bf7db51bfe1f05b6e (patch)
tree96058ba922e9f7cecd929a464a40cae51cbeaa6e /crypto/khazad.c
parentiscsi-target: return the correct port in SendTargets (diff)
downloadkernel-qcow2-linux-ab477c1ff5e0a744c072404bf7db51bfe1f05b6e.tar.gz
kernel-qcow2-linux-ab477c1ff5e0a744c072404bf7db51bfe1f05b6e.tar.xz
kernel-qcow2-linux-ab477c1ff5e0a744c072404bf7db51bfe1f05b6e.zip
srp-target: Retry when QP creation fails with ENOMEM
It is not guaranteed to that srp_sq_size is supported by the HCA. So if we failed to create the QP with ENOMEM, try with a smaller srp_sq_size. Keep it up until we hit MIN_SRPT_SQ_SIZE, then fail the connection. Reported-by: Mark Lehrer <lehrer@gmail.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Cc: <stable@vger.kernel.org> # 3.4+ Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'crypto/khazad.c')
0 files changed, 0 insertions, 0 deletions