md: Free writes_pending in md_stop
PATCH 1/1 md: Free writes_pending in md_stop
dm raid calls md_stop to stop the raid device. It needs to free the writes_pending here.
Signed-off-by Xiao Ni <[email protected]>
--- drivers/md/md.c | 1 + 1 file changed, 1 insertion(+)
drivers/md/md.c +1 -0
@@ -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);
Signature · 1 line
2.32.0 (Apple Git-132)
Quoted 5 lines · Xiao Ni
dm raid calls
md_stopto stop the raid device. It needs to free thewrites_pendinghere.Signed-off-by Xiao Ni <[email protected]>
Applied to md-next.
Thanks,
Song
Quoted 19 lines
--- drivers/md/md.c | 1 + 1 file changed, 1 insertion(+)drivers/md/md.c +1
-1@@ -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)