md/r5cache: handle R5LOG_PAYLOAD_FLUSH in recovery
authorSong Liu <songliubraving@fb.com>
Wed, 8 Mar 2017 01:44:21 +0000 (17:44 -0800)
committerShaohua Li <shli@fb.com>
Thu, 16 Mar 2017 23:55:57 +0000 (16:55 -0700)
commit2d4f468753777a29124f779cdffd1ec009d70597
tree758313f86d462d06c6dfedca2aae8922a4c4a7a3
parentba903a3ea465bd2f2bb9316054b295e79a7a518e
md/r5cache: handle R5LOG_PAYLOAD_FLUSH in recovery

This patch adds handling of R5LOG_PAYLOAD_FLUSH in journal recovery.
Next patch will add logic that generate R5LOG_PAYLOAD_FLUSH on flush
finish.

When R5LOG_PAYLOAD_FLUSH is seen in recovery, pending data and parity
will be dropped from recovery. This will reduce the number of stripes
to replay, and thus accelerate the recovery process.

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