Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: lustre: o2iblnd: properly set ibr_why

For the case of when the connections supported fragment count
is smaller than what is supported locally only set ibr_why to
IBLND_REJECT_RDMA_FRAGS if the ko2iblnd protocol verison is
IBLND_MSG_VERSION.

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7101
Reviewed-on: http://review.whamcloud.com/16367
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Olaf Weber <olaf@sgi.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Amir Shehata and committed by
Greg Kroah-Hartman
2c6a1845 69b48fff

+1 -1
+1 -1
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c
··· 2360 2360 reqmsg->ibm_u.connparams.ibcp_max_frags, 2361 2361 kiblnd_rdma_frags(version, ni)); 2362 2362 2363 - if (version >= IBLND_MSG_VERSION) 2363 + if (version == IBLND_MSG_VERSION) 2364 2364 rej.ibr_why = IBLND_REJECT_RDMA_FRAGS; 2365 2365 2366 2366 goto failed;