mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
block: eliminate BDRV_REQ_NO_SERIALISING
It is unused since commit 00e30f0
("block/backup: use backup-top instead
of write notifiers", 2019-10-01), drop it to simplify the code.
While at it, drop redundant assertions on flags.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1578495356-46219-2-git-send-email-pbonzini@redhat.com
Message-Id: <1578495356-46219-2-git-send-email-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
928173659d
commit
c53cb42769
2 changed files with 4 additions and 26 deletions
|
@ -51,18 +51,6 @@ typedef enum {
|
|||
*/
|
||||
BDRV_REQ_MAY_UNMAP = 0x4,
|
||||
|
||||
/*
|
||||
* The BDRV_REQ_NO_SERIALISING flag is only valid for reads and means that
|
||||
* we don't want wait_serialising_requests() during the read operation.
|
||||
*
|
||||
* This flag is used for backup copy-on-write operations, when we need to
|
||||
* read old data before write (write notifier triggered). It is okay since
|
||||
* we already waited for other serializing requests in the initiating write
|
||||
* (see bdrv_aligned_pwritev), and it is necessary if the initiating write
|
||||
* is already serializing (without the flag, the read would deadlock
|
||||
* waiting for the serialising write to complete).
|
||||
*/
|
||||
BDRV_REQ_NO_SERIALISING = 0x8,
|
||||
BDRV_REQ_FUA = 0x10,
|
||||
BDRV_REQ_WRITE_COMPRESSED = 0x20,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue