]> git.proxmox.com Git - mirror_qemu.git/commit
nbd/server: Simplify zero and trim
authorEric Blake <eblake@redhat.com>
Wed, 17 Nov 2021 17:02:30 +0000 (11:02 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 22 Nov 2021 13:37:15 +0000 (07:37 -0600)
commite35574226a63f29e32eda8da5cc14832f19850e2
tree04bc0cfd2313140087bb8d7780c9a012fe77efe5
parent1644cccea5c71b02b9cf8f78b780e7069a29b189
nbd/server: Simplify zero and trim

Now that the block layer supports 64-bit operations (see commit
2800637a and friends, new to v6.2), we no longer have to self-fragment
requests larger than 2G, reverting the workaround added in 890cbccb08
("nbd: Fix large trim/zero requests", v5.1.0).

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20211117170230.1128262-3-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
nbd/server.c