Whamcloud - gitweb
LU-13004 lnet: don't embed whole lnet_md in lnet_event 40/37840/7
authorMr NeilBrown <neilb@suse.de>
Mon, 6 Apr 2020 16:59:35 +0000 (12:59 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Apr 2020 08:10:30 +0000 (08:10 +0000)
commit23f1c6e1f15ea4b457e40c91ee9d3768b7da253e
tree29322d98d285253809d999635bc7f0ec284e1228
parente790df5fa38d4e8928dd28ba9f250fec4c830786
LU-13004 lnet: don't embed whole lnet_md in lnet_event

Of the several fields that are copied into the lnet_md which is
embedded in an lnet_event, only three are ever used:
  start, user_ptr, md_options

Rather than allocating space for the whole structure, copying only
some in, and then using even fewer; just store the fields that are
needed.

Note that a comment suggests that the "threshold" value is
interesting, but this value is never used.  The comment has been
removed.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I7a69b52a65dda815b533c605f581e22fc4445be0
Reviewed-on: https://review.whamcloud.com/37840
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/include/uapi/linux/lnet/lnet-types.h
lnet/lnet/api-ni.c
lnet/lnet/lib-md.c
lnet/lnet/lib-move.c
lnet/lnet/lib-msg.c
lnet/lnet/peer.c
lnet/selftest/rpc.c
lustre/ptlrpc/events.c