]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm space map metadata: fix ref counting bug when bootstrapping a new space map
authorJoe Thornber <ejt@redhat.com>
Wed, 9 Dec 2015 16:38:12 +0000 (16:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:06:50 +0000 (15:06 -0800)
commita58ccbd069ee6a53b78bad5894fa493f124ab944
tree24a968d00a8a3ad8acf6ae21f6fe000cd5611887
parent9a9a7b4e292fd37f896748affa1ab69015e64dad
dm space map metadata: fix ref counting bug when bootstrapping a new space map

commit 50dd842ad83b43bed71790efb31cfb2f6c05c9c1 upstream.

When applying block operations (BOPs) do not remove them from the
uncommitted BOP ring-buffer until after they've been applied -- in case
we recurse.

Also, perform BOP_INC operation, in dm_sm_metadata_create() and
sm_metadata_extend(), in terms of the uncommitted BOP ring-buffer rather
than using direct calls to sm_ll_inc().

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/persistent-data/dm-space-map-metadata.c