Re: [PATCH v2] md/bitmap: wait for external bitmap writes to complete during tear down

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

 



On Mon, Apr 12, 2021 at 9:08 PM Sudhakar Panneerselvam
<sudhakar.panneerselvam@xxxxxxxxxx> wrote:
>
[...]

>
> Signed-off-by: Sudhakar Panneerselvam <sudhakar.panneerselvam@xxxxxxxxxx>
> Reviewed-by: Zhao Heming <heming.zhao@xxxxxxxx>

Applied to md-next. Thanks!
Song

> ---
> v2:
> - Do the additional bitmap write wait only for external bitmaps.
>
> ---
>  drivers/md/md-bitmap.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c
> index 200c5d0f08bf..ea3130e11680 100644
> --- a/drivers/md/md-bitmap.c
> +++ b/drivers/md/md-bitmap.c
> @@ -1722,6 +1722,8 @@ void md_bitmap_flush(struct mddev *mddev)
>         md_bitmap_daemon_work(mddev);
>         bitmap->daemon_lastrun -= sleep;
>         md_bitmap_daemon_work(mddev);
> +       if (mddev->bitmap_info.external)
> +               md_super_wait(mddev);
>         md_bitmap_update_sb(bitmap);
>  }
>
> --
> 1.8.3.1
>



[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