]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
block/file-posix: fix update_zones_wp() caller
authorSam Li <faithilikerun@gmail.com>
Fri, 25 Aug 2023 04:05:56 +0000 (12:05 +0800)
committerHanna Czenczek <hreitz@redhat.com>
Mon, 6 Nov 2023 15:15:07 +0000 (16:15 +0100)
commit10b9e0802a074c991e1ce485631d75641d0b0f9e
tree70f1451039be8204fd2c34b1fbc93bf09b73b372
parentb2b109041ecd1095384f5be5bb9badd13c1cf286
block/file-posix: fix update_zones_wp() caller

When the zoned request fail, it needs to update only the wp of
the target zones for not disrupting the in-flight writes on
these other zones. The wp is updated successfully after the
request completes.

Fixed the callers with right offset and nr_zones.

Signed-off-by: Sam Li <faithilikerun@gmail.com>
Message-Id: <20230825040556.4217-1-faithilikerun@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[hreitz: Rebased and fixed comment spelling]
Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
block/file-posix.c