summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2026-06-24 16:08:46 +0200
committerMichael S. Tsirkin <mst@redhat.com>2026-08-03 23:08:17 -0400
commitbb72524bca3a2aa2a422413b5c1c9b4cda0c843a (patch)
tree4f0fc30d23ce1991af2552ad0c56f26dd8e226df /scripts
parent009418c31c5a4162888ab9dfb0e44f0cbb6ad64b (diff)
downloadlinux-next-bb72524bca3a2aa2a422413b5c1c9b4cda0c843a.tar.gz
linux-next-bb72524bca3a2aa2a422413b5c1c9b4cda0c843a.zip
virtio_balloon: warn on failed buffer add in tell_host()
tell_host() ignores the return value of virtqueue_add_outbuf() and goes on to kick the queue and wait_event() for the host's ack. The comment claims "We should always be able to add one buffer to an empty queue", but that does not hold once the virtqueue has been broken (e.g. on device shutdown): the add then fails with -EIO and the following wait_event() would block forever on a buffer the host can never return. Warn and bail out on failure, mirroring virtballoon_free_page_report(). Suggested-by: David Hildenbrand <david@kernel.org> Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260624140846.2616797-5-den@openvz.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions