Whamcloud - gitweb
LU-7850 gnilnd: Fix niov calculation with offset kiov 93/18793/2
authorChuck Fossen <chuckf@cray.com>
Thu, 3 Mar 2016 20:14:26 +0000 (20:14 +0000)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 14 Mar 2016 02:42:55 +0000 (02:42 +0000)
commit2c800c7ad0102407ea89af4d2a98ba761b957d4a
tree08b358bb03b2c91aa1590b79240eb48aa73d2985
parent9ac9565b0b02d51d5b49721f695a5a0957733c2c
LU-7850 gnilnd: Fix niov calculation with offset kiov

The niov calculation in kgnilnd_setup_immediate_buffer() did not take
into account an offset kiov which can cause it to map one less page
than needed.
Add in the kiov_offset to the calculation.
Ran patched lnet_selftest that allows specifying an offset and
observed correct behavior.

Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: Id3d500d178841aa803c35bcbb7b56fd13b3fc1b0
Reviewed-on: http://review.whamcloud.com/18793
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/klnds/gnilnd/gnilnd_cb.c