projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72adae2
)
md: Free writes_pending in md_stop
author
Xiao Ni
<xni@redhat.com>
Sat, 21 Jan 2023 01:48:10 +0000
(09:48 +0800)
committer
Song Liu
<song@kernel.org>
Wed, 1 Feb 2023 16:32:58 +0000
(08:32 -0800)
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>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index da6370835c4778b3071025a7c66a412101461542..0cf340243ddb33047c20c2d995aec72baf039f1e 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-6265,6
+6265,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);