Whamcloud - gitweb
LU-14390 gnilnd: Use DIV_ROUND_UP to calculate niov 71/41371/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sun, 31 Jan 2021 14:47:21 +0000 (08:47 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 08:23:04 +0000 (08:23 +0000)
commit3117913e21adb941e0ef3467ff7588d5e5fbc6e4
treeddb5c9bb4615f0c3540a1ca41c2af4533ab909c4
parente00733f0f87659c936039a58ea738cfb070638bc
LU-14390 gnilnd: Use DIV_ROUND_UP to calculate niov

Use DIV_ROUND_UP to calculate niov, also remove 'unlikely'
as this is the common case.

Fixes: 7a74d382 ("LU-13004 modules: replace lnet_kiov_t with struct bio_vec")
Test-Parameters: trivial
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Iaf62326743ebe5e92bb3aa4b5780b47a5cfdfb18
Reviewed-on: https://review.whamcloud.com/41371
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/gnilnd/gnilnd_cb.c