Whamcloud - gitweb
LU-4423 ptlrpc: use list_move where appropriate. 07/35507/5
authorNeilBrown <neilb@suse.com>
Sun, 14 Jul 2019 23:32:56 +0000 (19:32 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 27 Jul 2019 00:22:24 +0000 (00:22 +0000)
commita71948a4e6de838190e9da99500556e98a84e196
tree5a3715125ba9dad7ac7b094d7e37a89690ed2c78
parentf2b224a48cb00f885b9df2cc56e349dae5f27f9e
LU-4423 ptlrpc: use list_move where appropriate.

There are several places in lustre where "list_del" (or occasionally
"list_del_init") is followed by "list_add" or "list_add_tail" which
moves the object to a different list.
These can be combined into "list_move" or "list_move_tail".

Change-Id: I9ca0df11cd655b9a63a4889dd4388b3b8c8bc992
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-on: https://review.whamcloud.com/35507
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_request.c
lustre/ptlrpc/client.c
lustre/ptlrpc/import.c
lustre/ptlrpc/service.c