[GIT PULL] MD update for 4.10-rc6

2017-01-27 Thread Shaohua Li
Hi,

Please pull MD fixes. This pull fixes several corner cases for raid5 cache,
which is merged into this cycle.

Thanks,
Shaohua

The following changes since commit 557ed56cc75e0a33c15ba438734a280bac23bd32:

  Merge tag 'sound-4.10-rc4' of 
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound (2017-01-12 14:45:59 
-0800)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/shli/md.git tags/md/4.10-rc6

for you to fetch changes up to 2e38a37f23c98d7fad87ff022670060b8a0e2bf5:

  md/r5cache: disable write back for degraded array (2017-01-24 11:26:06 -0800)


Shaohua Li (1):
  md/raid5-cache: delete meaningless code

Song Liu (5):
  md/r5cache: read data into orig_page for prexor of cached data
  md/raid5: move comment of fetch_block to right location
  md/r5cache: flush data only stripes in r5l_recovery_log()
  md/r5cache: shift complex rmw from read path to write path
  md/r5cache: disable write back for degraded array

 drivers/md/md.c  |   5 ++
 drivers/md/raid5-cache.c | 106 ++---
 drivers/md/raid5.c   | 121 ---
 drivers/md/raid5.h   |   7 +++
 4 files changed, 194 insertions(+), 45 deletions(-)


[GIT PULL] MD update for 4.10-rc3

2017-01-11 Thread Shaohua Li
Hi,

Please pull MD update for 4.10-rc3. Basically one fix for raid5 cache which is
merged in this cycle, others are trival fixes.

Thanks,
Shaohua

The following changes since commit 0c744ea4f77d72b3dcebb7a8f2684633ec79be88:

  Linux 4.10-rc2 (2017-01-01 14:31:53 -0800)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/shli/md.git tags/md/4.10-rc3

for you to fetch changes up to 32cd7cbbacf700885a2316275f188f2d5739b5f4:

  md/raid5: Use correct IS_ERR() variation on pointer check (2017-01-09 
13:58:10 -0800)


Colin Ian King (1):
  md/r5cache: fix spelling mistake on "recoverying"

JackieLiu (1):
  md/raid5-cache: removes unnecessary write-through mode judgments

Jes Sorensen (1):
  md/raid5: Use correct IS_ERR() variation on pointer check

Robert LeBlanc (2):
  md/raid1: Refactor raid1_make_request
  md/raid10: Refactor raid10_make_request

Shaohua Li (1):
  md: cleanup mddev flag clear for takeover

Song Liu (2):
  md/r5cache: simplify handling of sh->log_start in recovery
  md/r5cache: assign conf->log before r5l_load_log()

 drivers/md/md.h  |   8 ++
 drivers/md/raid0.c   |  12 ++-
 drivers/md/raid1.c   | 275 +--
 drivers/md/raid10.c  | 245 +++--
 drivers/md/raid5-cache.c |  36 +++
 drivers/md/raid5.c   |   7 +-
 6 files changed, 322 insertions(+), 261 deletions(-)


[GIT PULL] MD update for 4.10

2016-12-13 Thread Shaohua Li
Hi Linus,

Please pull MD changes for 4.10. This update includes:
- A raid5 writeback cache feature. The goal is to aggregate writes to make full
  stripe write and reduce read-modify-write. It's helpful for workload which
  does sequential write and follows fsync for example. This feature is
  experimental and off by default right now.
- FAILFAST support. This fails IOs to broken raid disks quickly, so can improve
  latency. It's mainly for DASD storage, but some patches help normal raid
  array too.
- Support bad block for raid array with external metadata
- AVX2 instruction support for raid6 parity calculation
- Normalize MD info output
- Add missing blktrace
- Other bug fixes

Thanks,
Shaohua

The following changes since commit b78b499a67c3f77aeb6cd0b54724bc38b141255d:

  Merge tag 'char-misc-4.10-rc1' of 
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc (2016-12-13 
12:11:01 -0800)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/shli/md.git for-linus

for you to fetch changes up to 20737738d397dfadbca1ea50dcc00d7259f500cf:

  Merge branch 'md-next' into md-linus (2016-12-13 12:40:15 -0800)


Dan Carpenter (1):
  md/r5cache: enable IRQs on error path

Gayatri Kammela (1):
  lib/raid6: Add AVX2 optimized xor_syndrome functions

Guoqing Jiang (1):
  md/bitmap: call bitmap_file_unmap once bitmap_storage_alloc returns 
-ENOMEM

JackieLiu (8):
  raid5-cache: restrict the use area of the log_offset variable
  md/raid5-cache: remove unnecessary function parameters
  md/raid5-cache: use ring add to prevent overflow
  md/raid5-cache: release the stripe_head at the appropriate location
  md/raid5-cache: remove the unnecessary next_cp_seq field from the r5l_log
  md/raid5-cache: do not need to set STRIPE_PREREAD_ACTIVE repeatedly
  md/raid5-cache: adjust the write position of the empty block if no data 
blocks
  md/raid5-cache: no recovery is required when create super-block

Konstantin Khlebnikov (1):
  md/raid5: limit request size according to implementation limits

NeilBrown (26):
  md: fix some issues with alloc_disk_sb()
  md: change all printk() to pr_err() or pr_warn() etc.
  md/bitmap: change all printk() to pr_*()
  md/linear: replace printk() with pr_*()
  md/multipath: replace printk() with pr_*()
  md/raid0: replace printk() with pr_*()
  md/raid1: change printk() to pr_*()
  md/raid10: change printk() to pr_*()
  md/raid5: change printk() to pr_*()
  md: perform async updates for metadata where possible.
  md/raid1: abort delayed writes when device fails.
  md/raid10: abort delayed writes when device fails.
  md/bitmap: Don't write bitmap while earlier writes might be in-flight
  md/raid1: fix: IO can block resync indefinitely
  md: define mddev flags, recovery flags and r1bio state bits using enums
  md: remove md_super_wait() call after bitmap_flush()
  md: add block tracing for bio_remapping
  md/bitmap: add blktrace event for writes to the bitmap
  md/raid1, raid10: add blktrace records when IO is delayed
  md/failfast: add failfast flag for md to be used by some personalities.
  md: Use REQ_FAILFAST_* on metadata writes where appropriate
  md/raid1: add failfast handling for reads.
  md/raid1: add failfast handling for writes.
  md/raid10: add failfast handling for reads.
  md/raid10: add failfast handling for writes.
  md: fix refcount problem on mddev when stopping array.

Shaohua Li (8):
  raid5-cache: fix lockdep warning
  md: add blktrace event for writes to superblock
  raid5-cache: suspend reclaim thread instead of shutdown
  md: stop write should stop journal reclaim
  md: takeover should clear unrelated bits
  md: MD_RECOVERY_NEEDED is set for mddev->recovery
  md: separate flags for superblock changes
  Merge branch 'md-next' into md-linus

Song Liu (14):
  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: caching phase of r5cache
  md/r5cache: write-out phase and reclaim support
  md/r5cache: sysfs entry journal_mode
  md/r5cache: refactoring journal recovery code
  md/r5cache: r5cache recovery: part 1
  md/r5cache: r5cache recovery: part 2
  md/r5cache: handle FLUSH and FUA
  md/r5cache: handle alloc_page failure
  md/r5cache: run_no_space_stripes() when R5C_LOG_CRITICAL == 0
  md/raid5-cache: fix crc in rewrite_data_only_stripes()
  md/r5cache: after recovery, increase journal seq by 1

Tomasz Majchrzak (4):
  md: add bad block support for external metadata
  md: don't fail an array if there are unacknowledged bad blocks
  md: wake up personality thread after array state update
  raid5: revert commit 11