提交 6825e6b4 编写于 作者: A Arseniy Krasnov 提交者: David S. Miller

virtio/vsock: remove redundant 'skb_pull()' call

Since we now no longer use 'skb->len' to update credit, there is no sense
to update skbuff state, because it is used only once after dequeue to
copy data and then will be released.

Fixes: 71dc9ec9 ("virtio/vsock: replace virtio_vsock_pkt with sk_buff")
Signed-off-by: NArseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: NStefano Garzarella <sgarzare@redhat.com>
Acked-by: NBobby Eshleman <bobby.eshleman@bytedance.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 07770616
......@@ -465,7 +465,6 @@ static int virtio_transport_seqpacket_do_dequeue(struct vsock_sock *vsk,
dequeued_len = err;
} else {
user_buf_len -= bytes_to_copy;
skb_pull(skb, bytes_to_copy);
}
spin_lock_bh(&vvs->rx_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册