]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
raid5: set write hint for PPL
authorMariusz Dabrowski <mariusz.dabrowski@intel.com>
Mon, 18 Feb 2019 14:04:09 +0000 (15:04 +0100)
committerSong Liu <songliubraving@fb.com>
Tue, 12 Mar 2019 17:15:18 +0000 (10:15 -0700)
commita596d08677320925b69e70c0fdc4c0f59384a65e
tree7ba718e75decf5f3c210a30386229a410c7b1829
parent9205e44916b2ca2e959be4210133292a19e79b0d
raid5: set write hint for PPL

When the Partial Parity Log is enabled, circular buffer is used to store
PPL data. Each write to RAID device causes overwrite of data in this buffer
so some write_hint can be set to those request to help drives handle
garbage collection. This patch adds new sysfs attribute which can be used
to specify which write_hint should be assigned to PPL.

Acked-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Mariusz Dabrowski <mariusz.dabrowski@intel.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Documentation/admin-guide/md.rst
drivers/md/raid5-log.h
drivers/md/raid5-ppl.c
drivers/md/raid5.c