Skip to content

Commit 6771596

Browse files
stefano-garzarellamstsirkin
authored andcommitted
vsock/virtio: remove unused 'work' field from 'struct virtio_vsock_pkt'
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 <[email protected]> Signed-off-by: Stefano Garzarella <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 40ce791 commit 6771596

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/linux/virtio_vsock.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ struct virtio_vsock_sock {
4848

4949
struct virtio_vsock_pkt {
5050
struct virtio_vsock_hdr hdr;
51-
struct work_struct work;
5251
struct list_head list;
5352
/* socket refcnt not held, only use for cancellation */
5453
struct vsock_sock *vsk;

0 commit comments

Comments
 (0)