]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit323a467a01cee9336559269dd859a9b78503e8b7
tree6182267810999a7a43f6905f097af91365ddcc38
parent12729c7f429e013393494b4223dbe8e642a45976
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