From: Bart Van Assche Date: Sun, 19 Oct 2014 15:05:33 +0000 (+0300) Subject: srp-target: Retry when QP creation fails with ENOMEM X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~89^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab477c1ff5e0a744c072404bf7db51bfe1f05b6e;p=pandora-kernel.git 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 Signed-off-by: Bart Van Assche Signed-off-by: Sagi Grimberg Cc: # 3.4+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed