Re: [PATCH 1/1] md: Free writes_pending in md_stop

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

 



On Fri, Jan 20, 2023 at 5:48 PM Xiao Ni <xni@xxxxxxxxxx> wrote:
>
> dm raid calls md_stop to stop the raid device. It needs to
> free the writes_pending here.
>
> Signed-off-by: Xiao Ni <xni@xxxxxxxxxx>

Applied to md-next.

Thanks,
Song

> ---
>  drivers/md/md.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/md/md.c b/drivers/md/md.c
> index 100c1327e90b..0e9f870e348a 100644
> --- a/drivers/md/md.c
> +++ b/drivers/md/md.c
> @@ -6267,6 +6267,7 @@ void md_stop(struct mddev *mddev)
>          */
>         __md_stop_writes(mddev);
>         __md_stop(mddev);
> +       percpu_ref_exit(&mddev->writes_pending);
>         percpu_ref_exit(&mddev->active_io);
>         bioset_exit(&mddev->bio_set);
>         bioset_exit(&mddev->sync_set);
> --
> 2.32.0 (Apple Git-132)
>



[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