Whamcloud - gitweb
LU-12569 o2iblnd: Make credits hiw connection aware 54/36254/2
authorPatrick Farrell <pfarrell@whamcloud.com>
Sun, 21 Jul 2019 17:06:37 +0000 (13:06 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 28 Sep 2019 06:50:06 +0000 (06:50 +0000)
commit90ba471e367754ea6ddb9a95060591f46b95b0b6
treea1e11f5f1e6624a75f2bb573fd0d1efb8ff976a2
parenteaed79bd261177b27b9993aa2ccb167d381c1e36
LU-12569 o2iblnd: Make credits hiw connection aware

The IBLND_CREDITS_HIGHWATER mark check currently looks only
at the global peer credits tunable, ignoring the connection
specific queue depth when determining the threshold at
which to send a NOOP message to return credits.

This is incorrect because while connection queue depth
defaults to the same as peer credits, it can be less than
that global value for specific connections.

So we must check for this case when setting the threshold.

Lustre-change: https://review.whamcloud.com/35578
Lustre-commit: 1b87e8f61781e48c31b4da647214d66addf2b90c

Test-Parameter: nettype=o2ib
Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ie028ae11cdbd0f75a38b265b7ab5830f92f08d90
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36254
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.h