diff mbox series

[v2,07/13] blklogwrites: Audit for read/write 64-bit cleanness

Message ID 20181115020334.1189829-8-eblake@redhat.com (mailing list archive)
State New, archived
Headers show
Series block: byte-based blocking read/write | expand

Commit Message

Eric Blake Nov. 15, 2018, 2:03 a.m. UTC
Nothing in blk_log_writes_co_do_log() is inherently limited by
a 32-bit type; document this by updating the refresh_limits
callback to document that this driver is 64-bit clean.

Signed-off-by: Eric Blake <eblake@redhat.com>
---
 block/blklogwrites.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/block/blklogwrites.c b/block/blklogwrites.c
index ff98cd55333..c945d3d77d7 100644
--- a/block/blklogwrites.c
+++ b/block/blklogwrites.c
@@ -328,6 +328,7 @@  static void blk_log_writes_refresh_limits(BlockDriverState *bs, Error **errp)
 {
     BDRVBlkLogWritesState *s = bs->opaque;
     bs->bl.request_alignment = s->sectorsize;
+    bs->bl.max_transfer = INT64_MAX;
 }

 static int coroutine_fn