aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-02Merge tag 'for-6.18/block-20250929' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-56/+51
2025-09-17md: init queue_limits->max_hw_wzeroes_unmap_sectors parameterZhang Yi1-0/+1
2025-09-10md/raid10: convert read/write to use bio_submit_split_bioset()Yu Kuai1-29/+13
2025-09-10md/raid10: add a new r10bio flag R10BIO_ReturnedYu Kuai1-3/+5
2025-09-10md: fix mssing blktrace bio split eventsYu Kuai1-0/+8
2025-09-09Merge tag 'md-6.18-20250909' of gitolite.kernel.org:pub/scm/linux/kernel/git/...Jens Axboe1-24/+25
2025-09-09block: add a bio_init_inline helperChristoph Hellwig1-2/+2
2025-09-06md/raid10: check before referencing mddev->bitmap_opsYu Kuai1-7/+13
2025-09-06md/md-bitmap: handle the case bitmap is not enabled before end_sync()Yu Kuai1-5/+3
2025-09-06md/md-bitmap: handle the case bitmap is not enabled before start_sync()Yu Kuai1-9/+6
2025-09-06md/md-bitmap: remove the parameter 'init' for bitmap_ops->resize()Yu Kuai1-4/+4
2025-07-31md: rename recovery_cp to resync_offsetLi Nan1-8/+8
2025-07-28Merge tag 'for-6.17/block-20250728' of git://git.kernel.dk/linuxLinus Torvalds1-3/+1
2025-07-22Merge tag 'md-6.17-20250722' of https://git.kernel.org/pub/scm/linux/kernel/g...Jens Axboe1-3/+0
2025-07-17md/raid10: set chunk_sectors limitJohn Garry1-0/+1
2025-07-17md/raid10: fix set but not used variable in sync_request_write()John Garry1-3/+0
2025-07-05md/raid1,raid10: strip REQ_NOWAIT from member biosZheng Qixing1-0/+2
2025-07-05raid10: cleanup memleak at raid10_make_requestNigel Croxon1-2/+8
2025-05-30md/raid1,raid10: don't handle IO error for REQ_RAHEAD and REQ_NOWAITYu Kuai1-5/+6
2025-05-10md: clean up accounting for issued sync IOYu Kuai1-9/+0
2025-04-06md/raid10: fix missing discard IO accountingYu Kuai1-0/+1
2025-03-26Merge tag 'for-6.15/block-20250322' of git://git.kernel.dk/linuxLinus Torvalds1-35/+31
2025-03-13Merge tag 'md-6.15-20250312' of https://git.kernel.org/pub/scm/linux/kernel/g...Jens Axboe1-28/+24
2025-03-06badblocks: use sector_t instead of int to avoid truncation of badblocks lengthZheng Qixing1-4/+4
2025-03-06md: improve return types of badblocks handling functionsZheng Qixing1-3/+3
2025-03-06md/raid10: wait barrier before returning discard request with REQ_NOWAITXiao Ni1-2/+1
2025-03-05md/raid1,raid10: don't ignore IO flagsYu Kuai1-8/+0
2025-03-05md: don't export md_cluster_opsYu Kuai1-9/+9
2025-03-05md: switch personalities to use md_submodule_headYu Kuai1-9/+13
2025-03-05md: only include md-cluster.h if necessaryYu Kuai1-0/+1
2025-02-14md/raid*: Fix the set_queue_limits implementationsBart Van Assche1-3/+1
2025-01-17block: Add common atomic writes enable flagJohn Garry1-1/+1
2025-01-13md/md-bitmap: move bitmap_{start, end}write to md upper layerYu Kuai1-3/+0
2025-01-13md/md-bitmap: remove the last parameter for bimtap_ops->endwrite()Yu Kuai1-20/+3
2025-01-13md/md-bitmap: factor behind write counters out from bitmap_{start/end}write()Yu Kuai1-4/+2
2024-11-30Merge tag 'block-6.13-20242901' of git://git.kernel.dk/linuxLinus Torvalds1-2/+18
2024-11-19md/raid10: Atomic write supportJohn Garry1-2/+18
2024-11-18Merge tag 'for-6.13/block-20241118' of git://git.kernel.dk/linuxLinus Torvalds1-23/+64
2024-11-11md/raid10: Handle bio_split() errorsJohn Garry1-1/+46
2024-11-05md/raid10: don't wait for Faulty rdev in wait_blocked_rdev()Yu Kuai1-22/+18
2024-10-17md/raid10: fix null ptr dereference in raid10_size()Yu Kuai1-2/+5
2024-08-27md/md-bitmap: merge md_bitmap_resize() into bitmap_operationsYu Kuai1-5/+5
2024-08-27md/md-bitmap: pass in mddev directly for md_bitmap_resize()Yu Kuai1-8/+9
2024-08-27md/md-bitmap: merge md_bitmap_unplug_async() into md_bitmap_unplug()Yu Kuai1-2/+2
2024-08-27md/md-bitmap: merge md_bitmap_cond_end_sync() into bitmap_operationsYu Kuai1-1/+1
2024-08-27md/md-bitmap: merge md_bitmap_close_sync() into bitmap_operationsYu Kuai1-1/+1
2024-08-27md/md-bitmap: merge md_bitmap_end_sync() into bitmap_operationsYu Kuai1-4/+6
2024-08-27md/md-bitmap: remove the parameter 'aborted' for md_bitmap_end_sync()Yu Kuai1-2/+2
2024-08-27md/md-bitmap: merge md_bitmap_start_sync() into bitmap_operationsYu Kuai1-10/+12
2024-08-27md/md-bitmap: merge md_bitmap_endwrite() into bitmap_operationsYu Kuai1-5/+6
2024-08-27md/md-bitmap: merge md_bitmap_startwrite() into bitmap_operationsYu Kuai1-1/+2
2024-08-15md: convert comma to semicolonChen Ni1-1/+1
2024-06-26md: set md-specific flags for all queue limitsChristoph Hellwig1-1/+1
2024-06-14Merge branch 'for-6.11/block-limits' into for-6.11/blockJens Axboe1-4/+6
2024-06-14block: move integrity information into queue_limitsChristoph Hellwig1-4/+6
2024-06-12md: pass in max_sectors for pers->sync_request()Yu Kuai1-6/+2
2024-06-10md: change the return value type of md_write_start to voidLi Nan1-2/+1
2024-03-11Merge tag 'for-6.9/block-20240310' of git://git.kernel.dk/linuxLinus Torvalds1-85/+58
2024-03-06md: remove mddev->queueChristoph Hellwig1-1/+1
2024-03-06md/raid10: use the atomic queue limit update APIsChristoph Hellwig1-27/+33
2024-03-06md: add a mddev_is_dm helperChristoph Hellwig1-5/+5
2024-03-06md: add a mddev_add_trace_msg helperChristoph Hellwig1-8/+7
2024-03-06md: add a mddev_trace_remap helperChristoph Hellwig1-8/+2
2024-02-29md/raid1-10: factor out a new helper raid1_should_read_first()Yu Kuai1-11/+2
2024-02-29md: add a new helper rdev_has_badblock()Yu Kuai1-31/+14
2024-02-15md: Don't register sync_thread for reshape directlyYu Kuai1-14/+2
2023-12-15md: factor out a helper exceed_read_errors() to check read_errorsLi Nan1-46/+3
2023-11-27md/raid10: remove rcu protection to access rdev from confYu Kuai1-155/+58
2023-11-27md: remove flag RemoveSynchronizedYu Kuai1-9/+0
2023-09-22md: initialize 'writes_pending' while allocating mddevYu Kuai1-3/+0
2023-08-15md: Hold mddev->reconfig_mutex when trying to get mddev->sync_threadLi Lingfeng1-1/+1
2023-08-15md/raid10: fix a 'conf->barrier' leakage in raid10_takeover()Yu Kuai1-1/+0
2023-07-27md/raid10: use dereference_rdev_and_rrdev() to get devicesLi Nan1-10/+5
2023-07-27md/raid10: factor out dereference_rdev_and_rrdev()Li Nan1-9/+20
2023-07-27md/raid10: check replacement and rdev to prevent submit the same io twiceLi Nan1-0/+2
2023-07-27md: remove redundant check in fix_read_error()Li Nan1-1/+1
2023-07-27md/raid10: optimize fix_read_errorLi Nan1-10/+10
2023-07-27md/raid10: switch to use md_account_bio() for io accountingYu Kuai1-11/+9
2023-06-23raid10: avoid spin_lock from fastpath from raid10_unplug()Yu Kuai1-2/+2
2023-06-23md/raid10: fix the condition to call bio_end_io_acct()Li Nan1-1/+1
2023-06-13md/raid1-10: limit the number of plugged bioYu Kuai1-1/+1
2023-06-13md/raid1-10: don't handle pluged bio by daemon threadYu Kuai1-5/+3
2023-06-13md/raid1-10: factor out a helper to submit normal writeYu Kuai1-22/+4
2023-06-13md/raid1-10: factor out a helper to add bio to plugYu Kuai1-10/+1
2023-06-13md/raid10: prevent soft lockup while flush writesYu Kuai1-0/+2
2023-06-13md/raid10: fix io loss while replacement replace rdevLi Nan1-4/+18
2023-06-13md/raid10: Do not add spare disk when recovery failsLi Nan1-2/+18
2023-06-13md/raid10: prioritize adding disk to 'removed' mirrorLi Nan1-15/+20
2023-06-13md/raid10: improve code of mrdev in raid10_sync_requestLi Nan1-11/+12
2023-06-13md/raid10: fix null-ptr-deref of mreplace in raid10_sync_requestLi Nan1-9/+5
2023-06-13md: protect md_thread with rcuYu Kuai1-8/+12
2023-06-01md: raid1: check if adding pages to resync bio failsJohannes Thumshirn1-10/+10
2023-04-14md/raid10: don't call bio_start_io_acct twice for bio which experienced read ...Yu Kuai1-1/+3
2023-04-14md/raid10: fix memleak of md threadYu Kuai1-3/+3
2023-04-14md/raid10: fix memleak for 'conf->bio_split'Yu Kuai1-20/+17
2023-04-14md/raid10: fix leak of 'r10bio->remaining' for recoveryYu Kuai1-10/+13
2023-04-13md/raid10: don't BUG_ON() in raise_barrier()Yu Kuai1-1/+3
2023-04-13md/raid10: Fix typo in comment (replacment -> replacement)Jiangshan Yi1-1/+1
2023-04-13md/raid10: fix null-ptr-deref in raid10_sync_requestLi Nan1-4/+4
2023-04-13md/raid10: fix task hung in raid10dLi Nan1-5/+13
2022-12-07block: remove bio_set_op_attrsChristoph Hellwig1-9/+9
2022-11-14md/raid0, raid10: Don't set discard sectors for request queueXiao Ni1-2/+0
2022-10-07Merge tag 'for-6.1/block-2022-10-03' of git://git.kernel.dk/linuxLinus Torvalds1-55/+96
2022-09-22md/raid10: convert resync_lock to use seqlockYu Kuai1-29/+58
2022-09-22md/raid10: fix improper BUG_ON() in raise_barrier()Yu Kuai1-1/+1
2022-09-22md/raid10: prevent unnecessary calls to wake_up() in fast pathYu Kuai1-2/+8
2022-09-22md/raid10: don't modify 'nr_waitng' in wait_barrier() for the case nowaitYu Kuai1-2/+2
2022-09-22md/raid10: factor out code from wait_barrier() to stop_waiting_barrier()Yu Kuai1-22/+28
2022-09-22md/raid10: fix compile warningGuoqing Jiang1-1/+1
2022-08-24md/raid10: Fix the data type of an r10_sync_page_io() argumentBart Van Assche1-7/+6
2022-08-02md-raid10: fix KASAN warningMikulas Patocka1-1/+4
2022-07-14md/raid10: Use the new blk_opf_t typeBart Van Assche1-5/+5
2022-07-14md/core: Combine two sync_page_io() argumentsBart Van Assche1-5/+5
2022-07-14block: remove bdevnameChristoph Hellwig1-1/+1
2022-05-22md: remove most calls to bdevnameChristoph Hellwig1-32/+22
2022-04-25md: Set MD_BROKEN for RAID1 and RAID10Mariusz Tkaczyk1-16/+24
2022-04-17block: remove QUEUE_FLAG_DISCARDChristoph Hellwig1-16/+2
2022-04-17block: add a bdev_nonrot helperChristoph Hellwig1-1/+1
2022-04-17block: turn bio_kmalloc into a simple kmalloc wrapperChristoph Hellwig1-7/+14
2022-03-24Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-1/+0
2022-03-08md: raid1/raid10: drop pending_cntMariusz Tkaczyk1-14/+3
2022-02-22scsi: md: Remove WRITE_SAME supportChristoph Hellwig1-1/+0
2022-02-04block: pass a block_device to bio_clone_fastChristoph Hellwig1-8/+8
2022-02-02block: pass a block_device and opf to bio_resetChristoph Hellwig1-5/+3
2022-02-02block: pass a block_device and opf to bio_alloc_biosetChristoph Hellwig1-4/+2
2022-01-06md: raid10 add nowait supportVishal Verma1-33/+67
2022-01-06md: drop queue limitation for RAID1 and RAID10Mariusz Tkaczyk1-7/+0
2021-10-18md: remove unused argument from md_new_eventGuoqing Jiang1-1/+1
2021-08-30Merge tag 'for-5.15/drivers-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+10
2021-08-26md/raid10: Remove unnecessary rcu_dereference in raid10_handle_discardXiao Ni1-4/+10
2021-08-04Merge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/so...Jens Axboe1-2/+2
2021-07-23md/raid10: properly indicate failure when ending a failed write requestWei Shuyu1-2/+2
2021-06-14md/raid10: enable io accountingGuoqing Jiang1-0/+6
2021-03-24md/raid10: improve discard request for far layoutXiao Ni1-19/+60
2021-03-24md/raid10: improve raid10 discard requestXiao Ni1-1/+262
2021-03-24md/raid10: pull the code that wait for blocked dev into one functionXiao Ni1-51/+69
2021-03-24md/raid10: extend r10bio devs to raid disksXiao Ni1-5/+5
2021-02-08md/raid10: remove dead code in reshape_requestChristoph Hellwig1-4/+0
2021-01-27md: remove bio_alloc_mddevChristoph Hellwig1-1/+1
2021-01-24block: store a block_device pointer in struct bioChristoph Hellwig1-6/+6
2020-12-16Merge tag 'for-5.11/drivers-2020-12-14' of git://git.kernel.dk/linux-blockLinus Torvalds1-1/+2
2020-12-16Merge tag 'for-5.11/block-2020-12-14' of git://git.kernel.dk/linux-blockLinus Torvalds1-4/+2
2020-12-09Revert "md/raid10: extend r10bio devs to raid disks"Song Liu1-4/+5
2020-12-09Revert "md/raid10: pull codes that wait for blocked dev into one function"Song Liu1-67/+51
2020-12-09Revert "md/raid10: improve raid10 discard request"Song Liu1-255/+1
2020-12-09Revert "md/raid10: improve discard request for far layout"Song Liu1-63/+23
2020-12-04block: remove the request_queue argument to the block_bio_remap tracepointChristoph Hellwig1-4/+2
2020-11-30md/raid10: initialize r10_bio->read_slot before use.Kevin Vigor1-1/+2
2020-09-24md/raid10: improve discard request for far layoutXiao Ni1-23/+63
2020-09-24md/raid10: improve raid10 discard requestXiao Ni1-1/+255
2020-09-24md/raid10: pull codes that wait for blocked dev into one functionXiao Ni1-51/+67
2020-09-24md/raid10: extend r10bio devs to raid disksXiao Ni1-5/+4
2020-09-24md: Simplify code with existing definition RESYNC_SECTORS in raid10.cZhen Lei1-4/+4
2020-09-24block: lift setting the readahead size into the block layerChristoph Hellwig1-23/+1
2020-09-24md: update the optimal I/O size on reshapeChristoph Hellwig1-8/+14
2020-08-05Merge tag 'for-5.9/drivers-20200803' of git://git.kernel.dk/linux-blockLinus Torvalds1-6/+14
2020-07-22md/raid10: avoid deadlock on recovery.Vitaly Mayatskikh1-3/+11
2020-07-15md: raid10: Fix compilation warningDamien Le Moal1-2/+2
2020-07-14md: fix deadlock causing by sysfs_notifyJunxiao Bi1-1/+1
2020-07-08writeback: remove bdi->congested_fnChristoph Hellwig1-26/+0
2020-07-01block: rename generic_make_request to submit_bio_noacctChristoph Hellwig1-14/+14
2019-11-11md/raid10: prevent access of uninitialized resync_pages offsetJohn Pittman1-1/+1
2019-10-24md: improve handling of bio with REQ_PREFLUSH in md_flush_request()David Jeffery1-3/+2
2019-08-07md: allow last device to be forcibly removed from RAID1/RAID10.Guoqing Jiang1-3/+3
2019-08-07md/raid10: end bio when the device faultyYufen Yu1-12/+14
2019-06-15md/raid10: read balance chooses idlest disk for SSDGuoqing Jiang1-12/+33
2019-06-15md: raid1-10: Unify r{1,10}bio_pool_freeMarcos Paulo de Souza1-8/+3
2019-06-15md: raid10: Use struct_size() in kmalloc()Gustavo A. R. Silva1-2/+1
2019-06-15drivers: md: Unify common definitions of raid1 and raid10Marcos Paulo de Souza1-26/+1
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 47Thomas Gleixner1-10/+1
2019-03-12md: Fix failed allocation of md_register_threadAditya Pakki1-0/+2
2019-03-12It's wrong to add len to sector_nr in raid10 reshape twiceXiao Ni1-1/+0
2018-12-20md: fix raid10 hang issue caused by barrierGuoqing Jiang1-0/+4
2018-12-20raid10: refactor common wait code from regular read/write requestGuoqing Jiang1-47/+25
2018-10-18md-cluster: introduce resync_info_get interface for sanity checkGuoqing Jiang1-1/+7
2018-10-18md-cluster/raid10: support add disk under grow modeGuoqing Jiang1-0/+34
2018-10-18md-cluster/raid10: resize all the bitmaps before start reshapeGuoqing Jiang1-3/+38
2018-10-14MD: fix invalid stored role for a disk - try2Shaohua Li1-0/+1
2018-09-28md/raid10: Fix raid10 replace hang when new added disk faultyAlex Wu1-13/+14
2018-08-31RAID10 BUG_ON in raise_barrier when force is true and conf->barrier is 0Xiao Ni1-1/+4
2018-08-18Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto...Linus Torvalds1-27/+25
2018-08-01md: Avoid namespace collision with bitmap APIAndy Shevchenko1-27/+25
2018-06-28md/raid10: fix that replacement cannot complete recovery after reassembleBingJing Chang1-0/+7
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-7/+6
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-1/+1
2018-06-09Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-4/+6
2018-05-30md: convert to bioset_init()/mempool_init()Kent Overstreet1-31/+29
2018-05-01raid10: check bio in r10buf_pool_free to void NULL pointer dereferenceGuoqing Jiang1-3/+5
2018-05-01md: fix an error code format and remove unsed bio_sectorYufen Yu1-1/+1
2018-04-05Merge tag 'for-4.17/block-20180402' of git://git.kernel.dk/linux-blockLinus Torvalds1-3/+3
2018-03-08block: Use blk_queue_flag_*() in drivers instead of queue_flag_*()Bart Van Assche1-3/+3
2018-02-25md: fix a potential deadlock of raid5/raid10 reshapeBingJing Chang1-7/+1
2018-02-25md-cluster: choose correct label when clustered layout is not supportedLidong Zhong1-1/+1
2018-02-19md raid10: fix NULL deference in handle_write_completed()Yufen Yu1-2/+4
2018-02-17raid10: change the size of resync window for clustered raidGuoqing Jiang1-1/+1
2017-12-11md/raid1,raid10: silence warning about wait-within-waitNeilBrown1-0/+12
2017-12-01md/raid1/10: add missed blk plugShaohua Li1-0/+4
2017-11-01md-cluster: Use a small window for raid10 resyncGuoqing Jiang1-1/+112
2017-11-01md-cluster: Suspend writes in RAID10 if within rangeGuoqing Jiang1-0/+16
2017-11-01md-cluster/raid10: set "do_balance = 0" if area is resyncingGuoqing Jiang1-2/+5