]> git.baikalelectronics.ru Git - kernel.git/commit
md-bitmap: create and destroy wb_info_pool with the change of bitmap
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 14 Jun 2019 09:10:38 +0000 (17:10 +0800)
committerSong Liu <songliubraving@fb.com>
Thu, 20 Jun 2019 23:36:00 +0000 (16:36 -0700)
commit4154b971ab195cc67fc80de8bef03cb88e8b253d
treea02a0ed200e15002332d6ac82059cef91658f751
parente98a16968c0fe162d6e4b029a319da92e71d0db3
md-bitmap: create and destroy wb_info_pool with the change of bitmap

The write-behind attribute is part of bitmap, since bitmap
can be added/removed dynamically with the following.

1. mdadm --grow /dev/md0 --bitmap=none
2. mdadm --grow /dev/md0 --bitmap=internal --write-behind

So we need to destroy wb_info_pool in md_bitmap_destroy,
and create the pool before load bitmap.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md-bitmap.c