]> git.karo-electronics.de Git - karo-tx-linux.git/commit
raid5-cache: switching to state machine for log disk cache flush
authorShaohua Li <shli@fb.com>
Wed, 2 Sep 2015 20:49:46 +0000 (13:49 -0700)
committerNeilBrown <neilb@suse.com>
Sun, 1 Nov 2015 02:48:26 +0000 (13:48 +1100)
commita8c34f915976e3de044cc31b8bcb46f816f5a52e
tree77423093942eedb3d69652dd6996ab3e29476b54
parent5c7e81c3de9eb3db01e16190a1da0899efee645b
raid5-cache: switching to state machine for log disk cache flush

Before we write stripe data to raid disks, we must guarantee stripe data
is settled down in log disk. To do this, we flush log disk cache and
wait the flush finish. That wait introduces sleep time in raid5d thread
and impact performance. This patch moves the log disk cache flush
process to the stripe handling state machine, which can remove the wait
in raid5d.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/raid5-cache.c
drivers/md/raid5.c