vsock/virtio: remove unused 'work' field from 'struct virtio_vsock_pkt'
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 15 Oct 2019 15:00:51 +0000 (17:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Oct 2019 08:25:04 +0000 (04:25 -0400)
The 'work' field was introduced with commit 06a8fc78367d0
("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>
include/linux/virtio_vsock.h

index 4c7781f..07875cc 100644 (file)
@@ -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;