]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5-cache: clear MD_SB_CHANGE_PENDING before flushing stripes
authorSong Liu <songliubraving@fb.com>
Mon, 6 Jul 2020 21:57:32 +0000 (14:57 -0700)
committerSong Liu <songliubraving@fb.com>
Wed, 15 Jul 2020 06:01:31 +0000 (23:01 -0700)
commitbae3312d478be15b507774326b644bdfd3d670d0
treeaec0586fc3450a91410ce822972a21048113ea33
parenta9b064d3a9f4f7cae409ad6cfd799932702f0350
md/raid5-cache: clear MD_SB_CHANGE_PENDING before flushing stripes

In recovery, if we process too much data, raid5-cache may set
MD_SB_CHANGE_PENDING, which causes spinning in handle_stripe().
Fix this issue by clearing the bit before flushing data only
stripes. This issue was initially discussed in [1].

[1] https://www.spinics.net/lists/raid/msg64409.html

Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/raid5-cache.c