qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/8] block/iscsi: drop unallocated_blocks_are_zero


From: Eric Blake
Subject: Re: [PATCH 4/8] block/iscsi: drop unallocated_blocks_are_zero
Date: Wed, 6 May 2020 16:25:13 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote:
We set bdi->unallocated_blocks_are_zero = iscsilun->lbprz, but
iscsi_co_block_status doesn't return 0 in case of iscsilun->lbprz, it
returns ZERO when appropriate. So actually unallocated_blocks_are_zero
is useless. Drop it now.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
  block/iscsi.c | 1 -
  1 file changed, 1 deletion(-)

This one is easier to justify after removing the 2 clients. But it's simpler than patch 1 in that because block_status never returned 0, this has no visible impact to 'qemu-io -c map' or similar, so it doesn't need the commit message justification about any change in behavior like patch 1 needed.

Reviewed-by: Eric Blake <address@hidden>


diff --git a/block/iscsi.c b/block/iscsi.c
index a8b76979d8..767e3e75fd 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -2163,7 +2163,6 @@ static int coroutine_fn 
iscsi_co_truncate(BlockDriverState *bs, int64_t offset,
  static int iscsi_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
  {
      IscsiLun *iscsilun = bs->opaque;
-    bdi->unallocated_blocks_are_zero = iscsilun->lbprz;
      bdi->cluster_size = iscsilun->cluster_size;
      return 0;
  }


--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]