aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorArseniy Krasnov <[email protected]>2023-07-25 17:29:09 +0000
committerPaolo Abeni <[email protected]>2023-07-27 13:51:48 +0000
commit051e77e33946f932e6879bf4df2773e3c998c3a7 (patch)
treefc1b227d5947fd17355bf40a5b77bd68786a973d /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentnet/mlx4: clean up a type issue (diff)
downloadkernel-051e77e33946f932e6879bf4df2773e3c998c3a7.tar.gz
kernel-051e77e33946f932e6879bf4df2773e3c998c3a7.zip
virtio/vsock: rework MSG_PEEK for SOCK_STREAM
This reworks current implementation of MSG_PEEK logic: 1) Replaces 'skb_queue_walk_safe()' with 'skb_queue_walk()'. There is no need in the first one, as there are no removes of skb in loop. 2) Removes nested while loop - MSG_PEEK logic could be implemented without it: just iterate over skbs without removing it and copy data from each until destination buffer is not full. Signed-off-by: Arseniy Krasnov <[email protected]> Reviewed-by: Bobby Eshleman <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions