Commit 07dbb135 authored by Xiao Ni's avatar Xiao Ni Committed by Song Liu
Browse files

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: default avatarXiao Ni <xni@redhat.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 72adae23
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);