* [PATCH -next v2] drm/amdgpu: use list_move instead of list_del/list_add in amdgpu_vm.c
@ 2021-06-09 7:08 Baokun Li
0 siblings, 0 replies; only message in thread
From: Baokun Li @ 2021-06-09 7:08 UTC (permalink / raw)
To: linux-kernel, Alex Deucher, Christian König, Pan, Xinhui,
David Airlie, Daniel Vetter, Sumit Semwal, Felix Kuehling,
Nirmoy Das, Philip Yang, Mihir Bhogilal Patel, Roy Sun
Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1,
amd-gfx, dri-devel, linux-media, linaro-mm-sig, kernel-janitors,
Hulk Robot
Using list_move() instead of list_del() + list_add() in amdgpu_vm.c.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
V1->V2:
CC mailist
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 9e3ab3b6c105..684c13aae4d0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -2518,8 +2518,7 @@ int amdgpu_vm_bo_clear_mappings(struct amdgpu_device *adev,
list_add(&after->list, &tmp->bo_va->invalids);
}
- list_del(&tmp->list);
- list_add(&tmp->list, &removed);
+ list_move(&tmp->list, &removed);
tmp = amdgpu_vm_it_iter_next(tmp, saddr, eaddr);
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-09 6:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 7:08 [PATCH -next v2] drm/amdgpu: use list_move instead of list_del/list_add in amdgpu_vm.c Baokun Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).