]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/file-posix: fix update_zones_wp() caller
authorSam Li <faithilikerun@gmail.com>
Fri, 25 Aug 2023 04:05:56 +0000 (12:05 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 9 Nov 2023 13:39:13 +0000 (16:39 +0300)
commita753815aa8b2ce9d72a7494c940485b5d885ba98
tree699e2ed861d9c584ca71cd5d71b5211cef22d6bc
parentcc9f53b3ec140b07328e38167dc44f37f63b7781
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>
(cherry picked from commit 10b9e0802a074c991e1ce485631d75641d0b0f9e)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/file-posix.c