Skip to content

Commit

Permalink
vsock/virtio: remove unused 'work' field from 'struct virtio_vsock_pkt'
Browse files Browse the repository at this point in the history
The 'work' field was introduced with commit 06a8fc7
("VSOCK: Introduce virtio_vsock_common.ko")
but it is never used in the code, so we can remove it to save
memory allocated in the per-packet 'struct virtio_vsock_pkt'

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
Stefano Garzarella authored and Michael S. Tsirkin committed Oct 28, 2019
1 parent 40ce791 commit 6771596
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/virtio_vsock.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ struct virtio_vsock_sock {

struct virtio_vsock_pkt {
struct virtio_vsock_hdr hdr;
struct work_struct work;
struct list_head list;
/* socket refcnt not held, only use for cancellation */
struct vsock_sock *vsk;
Expand Down

0 comments on commit 6771596

Please sign in to comment.