Re: [Patch net 2/2] vsock/virtio: Don't reset the created SOCKET during suspend to ram

2025-02-11 Thread Stefano Garzarella
On Tue, Feb 11, 2025 at 03:19:22PM +0800, Junnan Wu wrote: Function virtio_vsock_vqs_del will be invoked in 2 cases virtio_vsock_remove() and virtio_vsock_freeze(). And when driver freeze, the connected socket will be set to TCP_CLOSE and it will cause that socket can not be unusable after resum

[Patch net 2/2] vsock/virtio: Don't reset the created SOCKET during suspend to ram

2025-02-10 Thread Junnan Wu
Function virtio_vsock_vqs_del will be invoked in 2 cases virtio_vsock_remove() and virtio_vsock_freeze(). And when driver freeze, the connected socket will be set to TCP_CLOSE and it will cause that socket can not be unusable after resume. Refactor function virtio_vsock_vqs_del to differentiate t