md: Free writes_pending in md_stop
authorXiao Ni <xni@redhat.com>
Sat, 21 Jan 2023 01:48:10 +0000 (09:48 +0800)
committerSong Liu <song@kernel.org>
Wed, 1 Feb 2023 16:32:58 +0000 (08:32 -0800)
commit07dbb13542cc022677b64acc6e0bd0d8a2cbf4dc
tree74ac3e56323f242393264abd1d5b937a144ac4cf
parent72adae23a72cb12e2ef0dcd7c0aa042867f27998
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>
drivers/md/md.c