All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] md: Free writes_pending in md_stop
@ 2023-01-21  1:48 Xiao Ni
  2023-02-01  7:25 ` Song Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Ni @ 2023-01-21  1:48 UTC (permalink / raw)
  To: song; +Cc: linux-raid, ming.lei, ncroxon, heinzm

dm raid calls md_stop to stop the raid device. It needs to
free the writes_pending here.

Signed-off-by: Xiao Ni <xni@redhat.com>
---
 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)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] md: Free writes_pending in md_stop
  2023-01-21  1:48 [PATCH 1/1] md: Free writes_pending in md_stop Xiao Ni
@ 2023-02-01  7:25 ` Song Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Song Liu @ 2023-02-01  7:25 UTC (permalink / raw)
  To: Xiao Ni; +Cc: linux-raid, ming.lei, ncroxon, heinzm

On Fri, Jan 20, 2023 at 5:48 PM Xiao Ni <xni@redhat.com> 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@redhat.com>

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)
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-01  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-21  1:48 [PATCH 1/1] md: Free writes_pending in md_stop Xiao Ni
2023-02-01  7:25 ` Song Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.