aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid10.c
AgeCommit message (Expand)AuthorFilesLines
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
2017-11-01md: remove special meaning of ->quiesce(.., 2)NeilBrown1-7/+3
2017-10-16md: raid10: remove a couple of redundant variables and initializationsColin Ian King1-5/+1
2017-10-16md: rename some drivers/md/ files to have an "md-" prefixMike Snitzer1-1/+1
2017-10-16md: raid10: remove VLAISMatthias Kaehlcke1-5/+10
2017-09-07Merge tag 'md/4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-3/+32
2017-08-25md/raid1/10: reset bio allocated from mempoolShaohua Li1-3/+32
2017-08-23block: replace bi_bdev with a gendisk pointer and partitions indexChristoph Hellwig1-26/+24
2017-07-21md: simplify code with bio_io_errorGuoqing Jiang1-4/+2
2017-07-21md: raid1-10: move raid1/raid10 common code into raid1-10.cMing Lei1-9/+0
2017-07-21md: raid1/raid10: initialize bvec table via bio_add_page()Ming Lei1-2/+4
2017-07-21md: remove 'idx' from 'struct resync_pages'Ming Lei1-3/+3
2017-07-08Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-7/+9
2017-06-18blk: replace bioset_create_nobvec() with a flags arg to bioset_create()NeilBrown1-1/+1
2017-06-16md/raid10: fix FailFast test for wrong deviceGuoqing Jiang1-3/+3
2017-06-13md: fix deadlock between mddev_suspend() and md_write_start()NeilBrown1-4/+6
2017-06-12Merge tag 'v4.12-rc5' into for-4.13/blockJens Axboe1-0/+3
2017-06-09block: switch bios to blk_status_tChristoph Hellwig1-18/+18
2017-06-05md: initialise ->writes_pending in personality modules.NeilBrown1-0/+3
2017-05-11md/raid1/10: avoid unnecessary lockingShaohua Li1-4/+3
2017-05-01Merge branch 'md-next' into md-linusShaohua Li1-430/+306
2017-05-01md/raid10: skip spare disk as 'first' diskShaohua Li1-1/+1
2017-04-25md: clear WantReplacement once disk is removedGuoqing Jiang1-6/+2
2017-04-23md/raid1/10: remove unused queueLidong Zhong1-2/+0
2017-04-20md/raid10: wait up frozen array in handle_write_completedGuoqing Jiang1-0/+5
2017-04-11md/raid10: simplify handle_read_error()NeilBrown1-75/+47
2017-04-11md/raid10: simplify the splitting of requests.NeilBrown1-114/+50
2017-04-10md/raid10: reset the 'first' at the end of loopGuoqing Jiang1-0/+2
2017-04-08md: support REQ_OP_WRITE_ZEROESChristoph Hellwig1-0/+1
2017-03-24md: raid10: avoid direct access to bvec table in handle_reshape_read_errorMing Lei1-2/+5
2017-03-24md: raid10: retrieve page from preallocated resync page arrayMing Lei1-4/+9
2017-03-24md: raid10: don't use bio's vec table to manage resync pagesMing Lei1-52/+82
2017-03-24md: raid10: refactor code of read reshape's .bi_end_ioMing Lei1-10/+18
2017-03-24md: move two macros into md.hMing Lei1-3/+0
2017-03-24md: raid1/raid10: don't handle failure of bio_add_page()Ming Lei1-31/+10
2017-03-23md/raid10: refactor some codes from raid10_write_requestGuoqing Jiang1-100/+75
2017-03-22md/raid10: stop using bi_phys_segmentsNeilBrown1-51/+25
2017-03-22md/raid1, raid10: move rXbio accounting closer to allocation.NeilBrown1-13/+9
2017-03-16Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/shl...Linus Torvalds1-7/+34
2017-03-11blk: Ensure users for current->bio_list can see the full list.NeilBrown1-1/+2
2017-03-09md/raid1/10: fix potential deadlockShaohua Li1-0/+18
2017-03-09md: move funcs from pers->resize to update_sizeGuoqing Jiang1-4/+0
2017-03-09md/raid10: submit bio directly to replacement diskShaohua Li1-3/+16
2017-02-24Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-6/+5
2017-02-15md: fast clone bio in bio_clone_mddev()Ming Lei1-6/+5
2017-02-02block: Use pointer to backing_dev_info from request_queueJan Kara1-5/+5
2017-01-03md/raid10: Refactor raid10_make_requestRobert LeBlanc1-105/+140
2016-12-08md: separate flags for superblock changesShaohua Li1-11/+11
2016-11-22md/raid10: add failfast handling for writes.NeilBrown1-1/+28
2016-11-22md/raid10: add failfast handling for reads.NeilBrown1-5/+44
2016-11-22md: Use REQ_FAILFAST_* on metadata writes where appropriateNeilBrown1-0/+1
2016-11-18md/raid1, raid10: add blktrace records when IO is delayedNeilBrown1-0/+8
2016-11-18md: add block tracing for bio_remappingNeilBrown1-2/+29
2016-11-07md/raid10: abort delayed writes when device fails.NeilBrown1-6/+16
2016-11-07md/raid10: change printk() to pr_*()NeilBrown1-85/+56
2016-10-24RAID10: ignore discard errorShaohua Li1-2/+5
2016-08-30Merge tag 'md/4.8-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-6/+7
2016-08-24raid10: record correct address of bad blockTomasz Majchrzak1-4/+5