Re: resend: [PATCH v2 mdadm] super1.c: avoid useless sync when bitmap switches from clustered to none

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

 



On 3/2/21 4:35 PM, heming.zhao@xxxxxxxx wrote:
With kernel commit 480523feae58 ("md: only call set_in_sync() when it
is expected to succeed."), mddev->in_sync in clustered array is always
zero. It makes metadata resync_offset to always zero.
When assembling a clusterd array with "-U no-bitmap" option, kernel
md layer "mddev->resync_offset == 0" and "mddev->bitmap == NULL" will
trigger raid1 do sync on every bitmap chunk. the sync action is useless,
... ...
---
v2: only set MaxSector on bitmap clean device

---
  super1.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/super1.c b/super1.c


Hello all,

more info:
This patch had been verified & run in SUSE customer env for some time.

Thanks,
Heming






[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux