[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/5] block/io: Merge discard request alignments
From: |
Stefan Hajnoczi |
Subject: |
[PULL 5/5] block/io: Merge discard request alignments |
Date: |
Thu, 8 Jul 2021 14:11:43 +0100 |
From: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-id: 20210705130458.97642-3-akihiko.odaki@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
block/io.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/block/io.c b/block/io.c
index cf177a9d2d..e0a689c584 100644
--- a/block/io.c
+++ b/block/io.c
@@ -125,6 +125,8 @@ void bdrv_parent_drained_begin_single(BdrvChild *c, bool
poll)
static void bdrv_merge_limits(BlockLimits *dst, const BlockLimits *src)
{
+ dst->pdiscard_alignment = MAX(dst->pdiscard_alignment,
+ src->pdiscard_alignment);
dst->opt_transfer = MAX(dst->opt_transfer, src->opt_transfer);
dst->max_transfer = MIN_NON_ZERO(dst->max_transfer, src->max_transfer);
dst->max_hw_transfer = MIN_NON_ZERO(dst->max_hw_transfer,
--
2.31.1
- [PULL 0/5] Block patches, Stefan Hajnoczi, 2021/07/08
- [PULL 1/5] util/async: add a human-readable name to BHs for debugging, Stefan Hajnoczi, 2021/07/08
- [PULL 2/5] util/async: print leaked BH name when AioContext finalizes, Stefan Hajnoczi, 2021/07/08
- [PULL 3/5] block/file-posix: Optimize for macOS, Stefan Hajnoczi, 2021/07/08
- [PULL 5/5] block/io: Merge discard request alignments,
Stefan Hajnoczi <=
- [PULL 4/5] block: Add backend_defaults property, Stefan Hajnoczi, 2021/07/08
- Re: [PULL 0/5] Block patches, Peter Maydell, 2021/07/09