mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
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 <xni@redhat.com> Signed-off-by: Song Liu <song@kernel.org>
This commit is contained in:
parent
72adae23a7
commit
07dbb13542
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user