]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm btree remove: fix bug in redistribute3
authorDennis Yang <shinrairis@gmail.com>
Fri, 26 Jun 2015 14:25:48 +0000 (15:25 +0100)
committerZefan Li <lizefan@huawei.com>
Mon, 21 Mar 2016 01:17:41 +0000 (09:17 +0800)
commit9b733904f33edc0245486e64e76fe3540ddc9342
tree38a69a26cb3730fb55dc8c30b72421719f36f12e
parent0fa41525bd0b893f48117457759a6f575c041044
dm btree remove: fix bug in redistribute3

commit 4c7e309340ff85072e96f529582d159002c36734 upstream.

redistribute3() shares entries out across 3 nodes.  Some entries were
being moved the wrong way, breaking the ordering.  This manifested as a
BUG() in dm-btree-remove.c:shift() when entries were removed from the
btree.

For additional context see:
https://www.redhat.com/archives/dm-devel/2015-May/msg00113.html

Signed-off-by: Dennis Yang <shinrairis@gmail.com>
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/md/persistent-data/dm-btree-remove.c