]> git.baikalelectronics.ru Git - kernel.git/commit
raid5-ppl: PPL support for disks with write-back cache enabled
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Wed, 27 Dec 2017 09:31:40 +0000 (10:31 +0100)
committerShaohua Li <sh.li@alibaba-inc.com>
Mon, 15 Jan 2018 22:29:42 +0000 (14:29 -0800)
commit68ed5eb02d0668ab81f821f95918b1e988a77b7d
treefa8ec94368dfff1ec93b0366833e6f5d3cbcc70c
parentc3706fda9ef0265be3d1fce794a0fd4a589f21f1
raid5-ppl: PPL support for disks with write-back cache enabled

In order to provide data consistency with PPL for disks with write-back
cache enabled all data has to be flushed to disks before next PPL
entry. The disks to be flushed are marked in the bitmap. It's modified
under a mutex and it's only read after PPL io unit is submitted.

A limitation of 64 disks in the array has been introduced to keep data
structures and implementation simple. RAID5 arrays with so many disks are
not likely due to high risk of multiple disks failure. Such restriction
should not be a real life limitation.

With write-back cache disabled next PPL entry is submitted when data write
for current one completes. Data flush defers next log submission so trigger
it when there are no stripes for handling found.

As PPL assures all data is flushed to disk at request completion, just
acknowledge flush request when PPL is enabled.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Shaohua Li <sh.li@alibaba-inc.com>
Documentation/md/raid5-ppl.txt
drivers/md/md.c
drivers/md/md.h
drivers/md/raid5-cache.c
drivers/md/raid5-log.h
drivers/md/raid5-ppl.c
drivers/md/raid5.c