]> git.proxmox.com Git - mirror_qemu.git/commit
file-posix: Lock new fd in raw_reopen_prepare()
authorKevin Wolf <kwolf@redhat.com>
Fri, 1 Mar 2019 21:48:45 +0000 (22:48 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 12 Mar 2019 19:30:14 +0000 (20:30 +0100)
commita6aeca0ca530f104b5a5dd6704fca22b2c5edefa
tree63f30f13d284a71712264f51b2b4c7c60272de85
parente0c9cf3a484beb746996c0cd63e5585fecb3fd25
file-posix: Lock new fd in raw_reopen_prepare()

There is no reason why we can take locks on the new file descriptor only
in raw_reopen_commit() where error handling isn't possible any more.
Instead, we can already do this in raw_reopen_prepare().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c