linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/8] raid5-cache: enabling cache features
@ 2016-10-13  5:49 Song Liu
  2016-10-13  5:49 ` [PATCH v5 1/8] md/r5cache: Check array size in r5l_init_log Song Liu
                   ` (7 more replies)
  0 siblings, 8 replies; 23+ messages in thread
From: Song Liu @ 2016-10-13  5:49 UTC (permalink / raw)
  To: linux-raid
  Cc: neilb, shli, kernel-team, dan.j.williams, hch, liuzhengyuang521,
	liuzhengyuan, Song Liu

These are the 5th version of patches to enable write cache part of
raid5-cache. The journal part was released with kernel 4.4.

The caching part uses same disk format of raid456 journal, and provides
acceleration to writes. Write operations are committed (bio_endio) once
the data is secured in journal. Reconstruct and RMW are postponed to
reclaim path, which is (hopefully) not on the critical path.

The changes are organized in 8 patches (details below).

Patch for chunk_aligned_read in earlier RFC is not included yet
(http://marc.info/?l=linux-raid&m=146432700719277). But we may still need
some optimizations later, especially for SSD raid devices.

Changes between v5 and v4 (http://marc.info/?l=linux-raid&m=147629531615172)
  1. Change the output/input of sysfs entry r5c_state
  2. Move heavy reclaim work from raid5_make_request() to r5c_do_reclaim()
  3. Fix an issue with orig_page handling in the write path

Changes between v4 and v3 (http://marc.info/?l=linux-raid&m=147573807306070):
  1. Make reclaim robust
  2. Fix a bug in recovery

Changes between v3 and v2 (http://marc.info/?l=linux-raid&m=147493266208102):
  1. Incorporate feedback from Shaohua
  2. Reorganize the patches, for hopefully easier review
  3. Make sure no change to write through mode (journal only)
  4. Change reclaim design to avoid deadlock due to log space

Thanks,
Song

Song Liu (8):
  md/r5cache: Check array size in r5l_init_log
  md/r5cache: move some code to raid5.h
  md/r5cache: State machine for raid5-cache write back mode
  md/r5cache: write part of r5cache
  md/r5cache: reclaim support
  md/r5cache: sysfs entry r5c_state
  md/r5cache: r5c recovery
  md/r5cache: handle SYNC and FUA

 drivers/md/raid5-cache.c | 1659 ++++++++++++++++++++++++++++++++++++++++------
 drivers/md/raid5.c       |  261 +++++---
 drivers/md/raid5.h       |  150 ++++-
 3 files changed, 1772 insertions(+), 298 deletions(-)

--
2.9.3

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2016-10-26  1:18 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-13  5:49 [PATCH v5 0/8] raid5-cache: enabling cache features Song Liu
2016-10-13  5:49 ` [PATCH v5 1/8] md/r5cache: Check array size in r5l_init_log Song Liu
2016-10-13  5:49 ` [PATCH v5 2/8] md/r5cache: move some code to raid5.h Song Liu
2016-10-13  5:49 ` [PATCH v5 3/8] md/r5cache: State machine for raid5-cache write back mode Song Liu
2016-10-14  6:13   ` NeilBrown
2016-10-14  7:03     ` Song Liu
2016-10-13  5:49 ` [PATCH v5 4/8] md/r5cache: write part of r5cache Song Liu
2016-10-14  6:53   ` NeilBrown
2016-10-14  7:33     ` Song Liu
2016-10-19  0:53       ` NeilBrown
2016-10-21 20:42         ` Song Liu
2016-10-13  5:49 ` [PATCH v5 5/8] md/r5cache: reclaim support Song Liu
2016-10-19  2:03   ` NeilBrown
2016-10-21 21:04     ` Song Liu
2016-10-13  5:49 ` [PATCH v5 6/8] md/r5cache: sysfs entry r5c_state Song Liu
2016-10-19  2:19   ` NeilBrown
2016-10-21 21:20     ` Song Liu
2016-10-13  5:49 ` [PATCH v5 7/8] md/r5cache: r5c recovery Song Liu
2016-10-19  2:32   ` NeilBrown
2016-10-20  3:03   ` NeilBrown
2016-10-21 21:12     ` Song Liu
2016-10-26  1:18       ` NeilBrown
2016-10-13  5:49 ` [PATCH v5 8/8] md/r5cache: handle SYNC and FUA Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).