Re: [PATCH 6.1.y] virtio: reenable config if freezing device failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 10, 2024 at 11:27:58AM +0200, David Hildenbrand wrote:
> Currently, we don't reenable the config if freezing the device failed.
> 
> For example, virtio-mem currently doesn't support suspend+resume, and
> trying to freeze the device will always fail. Afterwards, the device
> will no longer respond to resize requests, because it won't get notified
> about config changes.
> 
> Let's fix this by re-enabling the config if freezing fails.
> 
> Fixes: 22b7050a024d ("virtio: defer config changed notifications")
> Cc: <stable@xxxxxxxxxx>
> Cc: "Michael S. Tsirkin" <mst@xxxxxxxxxx>
> Cc: Jason Wang <jasowang@xxxxxxxxxx>
> Cc: Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx>
> Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>
> Message-Id: <20240213135425.795001-1-david@xxxxxxxxxx>
> Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
> (cherry picked from commit 310227f42882c52356b523e2f4e11690eebcd2ab)
> Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>
> ---
>  drivers/virtio/virtio.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

All now queued up,t hanks.

greg k-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux