]> git.baikalelectronics.ru Git - kernel.git/commit
raid1: serialize the overlap write
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Mon, 23 Dec 2019 09:48:58 +0000 (10:48 +0100)
committerSong Liu <songliubraving@fb.com>
Mon, 13 Jan 2020 19:44:09 +0000 (11:44 -0800)
commit2a0a9ee9962719d308774fe0f3042ceb8dfdf8c6
treef48b25606a762fd53bd7a0fa2c626831ea2470e9
parentff57d3a2ae54c2ae4af8efc4fc02611b8267045e
raid1: serialize the overlap write

Before dispatch write bio, raid1 array which enables
serialize_policy need to check if overlap exists between
this bio and previous on-flying bios. If there is overlap,
then it has to wait until the collision is disappeared.

Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid1.c