]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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 b7fc5bc0aaaf2
("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 4c7781f4b29b6491204cb14cd7ce829a0f867588..07875ccc7bb50e9ec44a1886e4649aa27be1a2f8 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;