md/r5cache: generate R5LOG_PAYLOAD_FLUSH
authorSong Liu <songliubraving@fb.com>
Fri, 10 Mar 2017 05:23:39 +0000 (21:23 -0800)
committerShaohua Li <shli@fb.com>
Thu, 16 Mar 2017 23:55:57 +0000 (16:55 -0700)
commitea17481fb48888fa11f412766bde36be9171247e
tree6182267810999a7a43f6905f097af91365ddcc38
parent2d4f468753777a29124f779cdffd1ec009d70597
md/r5cache: generate R5LOG_PAYLOAD_FLUSH

In r5c_finish_stripe_write_out(), R5LOG_PAYLOAD_FLUSH is append to
log->current_io.

Appending R5LOG_PAYLOAD_FLUSH in quiesce needs extra writes to
journal. To simplify the logic, we just skip R5LOG_PAYLOAD_FLUSH in
quiesce.

Even R5LOG_PAYLOAD_FLUSH supports multiple stripes per payload.
However, current implementation is one stripe per R5LOG_PAYLOAD_FLUSH,
which is simpler.

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