Whamcloud - gitweb
LU-12678 lnet: use list_for_each_entry() 91/43591/4
authorJames Simmons <jsimmons@infradead.org>
Mon, 10 May 2021 20:10:29 +0000 (16:10 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Jun 2021 17:48:59 +0000 (17:48 +0000)
commit8d1635a6182312200695983d0462dadba60af14a
tree061d44b41186cd8f1ed181fe632897fc013163af
parente11a47da71a2e2482e4c4cf582d663cd76a2ecab
LU-12678 lnet: use list_for_each_entry()

Several loops use list_for_each(), then call list_entry()
each time in the loop This complexity can be replaced with
the use of  list_for_each_entry().

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: James Simmons <jsimmons@infradead.org>
Change-Id: Ib7968466c4fce5173b20cbaf6c878975ba522d43
Reviewed-on: https://review.whamcloud.com/43591
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/gnilnd/gnilnd.c
lnet/klnds/gnilnd/gnilnd_proc.c
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd_cb.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd_cb.c
lnet/klnds/socklnd/socklnd_proto.c