Unverified Commit 49f3cbc2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3827 backport mainline md patch

Merge Pull Request from: @ci-robot 
 
PR sync from: Li Nan <linan122@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/3MBEHV5PZTE3IMKY4T6KGBWSGOJCRHL6/ 
v2:
 - drop lts patches which have been merged.

Alex Lyakas (1):
  md: Whenassemble the array, consult the superblock of the freshest
    device

Denis Plotnikov (1):
  md-cluster: check for timeout while a new disk adding

Gou Hao (1):
  md/raid1: remove unnecessary null checking

Junxiao Bi (2):
  md: bypass block throttle for superblock update
  Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"

Justin Stitt (1):
  md: replace deprecated strncpy with memcpy

Li Nan (2):
  md: factor out a helper exceed_read_errors() to check read_errors
  md/raid1: support read error check

Mariusz Tkaczyk (1):
  md: do not require mddev_lock() for all options in array_state_store()

Yu Kuai (46):
  md: use separate work_struct for md_start_sync()
  md: factor out a helper to choose sync action from md_check_recovery()
  md: delay choosing sync action to md_start_sync()
  md: factor out a helper rdev_removeable() from remove_and_add_spares()
  md: factor out a helper rdev_is_spare() from remove_and_add_spares()
  md: factor out a helper rdev_addable() from remove_and_add_spares()
  md: delay remove_and_add_spares() for read only array to
    md_start_sync()
  md: initialize 'active_io' while allocating mddev
  md: initialize 'writes_pending' while allocating mddev
  md-bitmap: remove the checking of 'pers->quiesce' from
    location_store()
  md-bitmap: suspend array earlier in location_store()
  md: don't check 'mddev->pers' from suspend_hi_store()
  md: don't check 'mddev->pers' and 'pers->quiesce' from
    suspend_lo_store()
  md: factor out a helper from mddev_put()
  md: simplify md_seq_ops
  md/raid1: don't split discard io for write behind
  md: use READ_ONCE/WRITE_ONCE for 'suspend_lo' and 'suspend_hi'
  md/raid5-cache: use READ_ONCE/WRITE_ONCE for 'conf->log'
  md: replace is_md_suspended() with 'mddev->suspended' in
    md_check_recovery()
  md: add new helpers to suspend/resume array
  md: add new helpers to suspend/resume and lock/unlock array
  md/dm-raid: use new apis to suspend array
  md/md-bitmap: use new apis to suspend array for location_store()
  md/raid5-cache: use new apis to suspend array
  md/raid5: use new apis to suspend array
  md: use new apis to suspend array for sysfs apis
  md: use new apis to suspend array for adding/removing rdev from
    state_store()
  md: use new apis to suspend array for ioctls involed array
    reconfiguration
  md: use new apis to suspend array before
    mddev_create/destroy_serial_pool
  md: cleanup mddev_create/destroy_serial_pool()
  md/md-linear: cleanup linear_add()
  md/raid5: replace suspend with quiesce() callback
  md: suspend array in md_start_sync() if array need reconfiguration
  md: remove old apis to suspend the array
  md: rename __mddev_suspend/resume() back to mddev_suspend/resume()
  md: cleanup pers->prepare_suspend()
  md: remove flag RemoveSynchronized
  md/raid10: remove rcu protection to access rdev from conf
  md/raid1: remove rcu protection to access rdev from conf
  md/raid5: remove rcu protection to access rdev from conf
  md/md-multipath: remove rcu protection to access rdev from conf
  md: synchronize flush io with array reconfiguration
  md: fix missing flush of sync_work
  md: fix stopping sync thread
  md: split MD_RECOVERY_NEEDED out of mddev_resume
  dm-raid: delay flushing event_work() after reconfig_mutex is released


-- 
2.39.2
 
https://gitee.com/openeuler/kernel/issues/I8T02O 
 
Link:https://gitee.com/openeuler/kernel/pulls/3827

 

Reviewed-by: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents e945027f b3623a92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment