aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.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-58/+61
2025-09-17md: init queue_limits->max_hw_wzeroes_unmap_sectors parameterZhang Yi1-0/+1
2025-09-10md/raid1: convert to use bio_submit_split_bioset()Yu Kuai1-27/+11
2025-09-10md: fix mssing blktrace bio split eventsYu Kuai1-0/+4
2025-09-09Merge tag 'md-6.18-20250909' of gitolite.kernel.org:pub/scm/linux/kernel/git/...Jens Axboe1-32/+47
2025-09-09block: add a bio_init_inline helperChristoph Hellwig1-1/+1
2025-09-06md/raid1: check before referencing mddev->bitmap_opsYu Kuai1-9/+13
2025-09-06md/raid1: check bitmap before behind writeYu Kuai1-17/+28
2025-09-06md/md-bitmap: handle the case bitmap is not enabled before end_sync()Yu Kuai1-3/+3
2025-09-06md/md-bitmap: handle the case bitmap is not enabled before start_sync()Yu Kuai1-3/+3
2025-09-06md/md-bitmap: remove the parameter 'init' for bitmap_ops->resize()Yu Kuai1-1/+1
2025-09-05md/raid1: fix data lost for writemostly rdevYu Kuai1-1/+1
2025-08-03md/raid1: remove struct pool_info and related codeWang Jinchao1-35/+14
2025-08-03md/raid1: change r1conf->r1bio_pool to a pointer typeWang Jinchao1-21/+18
2025-07-31md: rename recovery_cp to resync_offsetLi Nan1-5/+5
2025-07-05md/raid1,raid10: strip REQ_NOWAIT from member biosZheng Qixing1-1/+2
2025-07-05md/raid1: Fix stack memory use after return in raid1_reshapeWang Jinchao1-0/+1
2025-05-30md/raid1,raid10: don't handle IO error for REQ_RAHEAD and REQ_NOWAITYu Kuai1-9/+10
2025-05-10md: clean up accounting for issued sync IOYu Kuai1-3/+0
2025-04-16md/raid1: Add check for missing source disk in process_checks()Meir Elisha1-10/+16
2025-03-26Merge tag 'for-6.15/block-20250322' of git://git.kernel.dk/linuxLinus Torvalds1-25/+31
2025-03-13Merge tag 'md-6.15-20250312' of https://git.kernel.org/pub/scm/linux/kernel/g...Jens Axboe1-20/+26
2025-03-06badblocks: use sector_t instead of int to avoid truncation of badblocks lengthZheng Qixing1-2/+2
2025-03-06md: improve return types of badblocks handling functionsZheng Qixing1-3/+3
2025-03-05md/raid1,raid10: don't ignore IO flagsYu Kuai1-5/+0
2025-03-05md: don't export md_cluster_opsYu Kuai1-5/+5
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-15md/raid1: fix memory leak in raid1_run() if no active rdevZheng Qixing1-1/+7
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-4/+0
2025-01-13md/md-bitmap: remove the last parameter for bimtap_ops->endwrite()Yu Kuai1-23/+3
2025-01-13md/md-bitmap: factor behind write counters out from bitmap_{start/end}write()Yu Kuai1-5/+7
2024-11-19md/raid1: Atomic write supportJohn Garry1-2/+18
2024-11-11md/raid1: Handle bio_split() errorsJohn Garry1-2/+31
2024-11-05md/raid1: don't wait for Faulty rdev in wait_blocked_rdev()Yu Kuai1-13/+4
2024-11-05md/raid1: factor out helper to handle blocked rdev from raid1_write_request()Yu Kuai1-36/+48
2024-09-16Merge tag 'for-6.12/block-20240913' of git://git.kernel.dk/linuxLinus Torvalds1-54/+45
2024-08-27md/md-bitmap: make in memory structure internalYu Kuai1-3/+2
2024-08-27md/md-bitmap: merge md_bitmap_wait_behind_writes() into bitmap_operationsYu Kuai1-1/+1
2024-08-27md/md-bitmap: merge md_bitmap_resize() into bitmap_operationsYu Kuai1-1/+1
2024-08-27md/md-bitmap: pass in mddev directly for md_bitmap_resize()Yu Kuai1-5/+7
2024-08-27md/md-bitmap: merge md_bitmap_unplug_async() into md_bitmap_unplug()Yu Kuai1-1/+1
2024-08-27md/md-bitmap: merge md_bitmap_cond_end_sync() into bitmap_operationsYu Kuai1-3/+3
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-3/+3
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-5/+5
2024-08-27md/md-bitmap: merge md_bitmap_endwrite() into bitmap_operationsYu Kuai1-5/+7
2024-08-27md/md-bitmap: merge md_bitmap_startwrite() into bitmap_operationsYu Kuai1-2/+3
2024-08-27md/md-bitmap: merge md_bitmap_status() into bitmap_operationsYu Kuai1-1/+1
2024-08-27md/md-bitmap: add 'behind_writes' and 'behind_wait' into struct md_bitmap_statsYu Kuai1-5/+8
2024-08-27md/raid1: use md_bitmap_wait_behind_writes() in raid1_read_request()Yu Kuai1-5/+2
2024-08-27md/raid1: Clean up local variable 'b' from raid1_read_request()Yu Kuai1-17/+4
2024-08-15md/raid1: Fix data corruption for degraded array with slow diskYu Kuai1-4/+10
2024-07-12md/raid1: set max_sectors during early return from choose_slow_rdev()Mateusz Jończyk1-0/+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-14md/raid1: don't free conf on raid0_run failureChristoph Hellwig1-11/+3
2024-06-12md: pass in max_sectors for pers->sync_request()Yu Kuai1-3/+2
2024-06-10md/raid1: don't free conf on raid0_run failureChristoph Hellwig1-11/+3
2024-06-10md: change the return value type of md_write_start to voidLi Nan1-2/+1
2024-03-08raid1: fix use-after-free for original bio in raid1_write_request()Yu Kuai1-1/+1
2024-03-06md: remove mddev->queueChristoph Hellwig1-1/+1
2024-03-06md/raid1: use the atomic queue limit update APIsChristoph Hellwig1-9/+16
2024-03-06md: add a mddev_is_dm helperChristoph Hellwig1-8/+5
2024-03-06md: add a mddev_add_trace_msg helperChristoph Hellwig1-6/+4
2024-03-06md: add a mddev_trace_remap helperChristoph Hellwig1-9/+2
2024-02-29md/raid1: factor out helpers to choose the best rdev from read_balance()Yu Kuai1-77/+98
2024-02-29md/raid1: factor out the code to manage sequential IOYu Kuai1-34/+37
2024-02-29md/raid1: factor out choose_bb_rdev() from read_balance()Yu Kuai1-31/+48
2024-02-29md/raid1: factor out choose_slow_rdev() from read_balance()Yu Kuai1-17/+52
2024-02-29md/raid1: factor out read_first_rdev() from read_balance()Yu Kuai1-17/+46
2024-02-29md/raid1-10: factor out a new helper raid1_should_read_first()Yu Kuai1-13/+2
2024-02-29md/raid1: fix choose next idle in read_balance()Yu Kuai1-10/+22
2024-02-29md/raid1: record nonrot rdevs while adding/removing rdevs to confYu Kuai1-7/+10
2024-02-29md/raid1: factor out helpers to add rdev to confYu Kuai1-32/+53
2024-02-29md: add a new helper rdev_has_badblock()Yu Kuai1-19/+7
2024-01-24md: fix a suspicious RCU usage warningMikulas Patocka1-1/+1
2024-01-09md/raid1: Use blk_opf_t for read and write operationsBart Van Assche1-6/+6
2023-12-15md/raid1: support read error checkLi Nan1-5/+12
2023-12-15md: factor out a helper exceed_read_errors() to check read_errorsLi Nan1-0/+1
2023-12-15md/raid1: remove unnecessary null checkingGou Hao1-2/+0
2023-11-27md/raid1: remove rcu protection to access rdev from confYu Kuai1-39/+23
2023-11-27md: remove flag RemoveSynchronizedYu Kuai1-9/+0
2023-10-09md/raid1: don't split discard io for write behindYu Kuai1-1/+2
2023-09-22md: initialize 'writes_pending' while allocating mddevYu Kuai1-2/+1
2023-09-11md/raid1: fix error: ISO C90 forbids mixed declarationsNigel Croxon1-2/+1
2023-08-17md raid1: allow writebehind to work on any leg device set WriteMostlyHeinz Mauelshagen1-2/+1
2023-08-17md/raid1: hold the barrier until handle_read_error() finishesXueshi Hu1-1/+3
2023-08-17md/raid1: free the r1bio before waiting for blocked rdevXueshi Hu1-2/+2
2023-08-17md/raid1: call free_r1bio() before allow_barrier() in raid_end_bio_io()Xueshi Hu1-3/+4
2023-08-15md: Hold mddev->reconfig_mutex when trying to get mddev->sync_threadLi Lingfeng1-2/+2
2023-08-15md: raid1: fix potential OOB in raid1_remove_disk()Zhang Shurong1-0/+4
2023-07-27md/raid1: Avoid lock contention from wake_up()Jack Wang1-6/+12
2023-07-27md: remove redundant check in fix_read_error()Li Nan1-1/+1
2023-07-27md/raid1: prioritize adding disk to 'removed' mirrorLi Nan1-11/+15
2023-07-27md/raid1: switch to use md_account_bio() for io accountingYu Kuai1-8/+6
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-2/+2
2023-06-13md/raid1-10: factor out a helper to submit normal writeYu Kuai1-11/+2
2023-06-13md/raid1-10: factor out a helper to add bio to plugYu Kuai1-11/+1
2023-06-13md: protect md_thread with rcuYu Kuai1-3/+4
2023-06-01md: raid1: use __bio_add_page for adding single page to bioJohannes Thumshirn1-1/+1
2023-06-01md: check for failure when adding pages in alloc_behind_master_bioJohannes Thumshirn1-1/+4
2022-12-07block: remove bio_set_op_attrsChristoph Hellwig1-6/+6
2022-11-14md/raid1: stop mdx_raid1 thread when raid1 array run failedJiang Li1-0/+1
2022-07-14md/raid1: Use the new blk_opf_t typeBart Van Assche1-2/+2
2022-07-14md/core: Combine two sync_page_io() argumentsBart Van Assche1-4/+4
2022-07-14block: remove bdevnameChristoph Hellwig1-1/+1
2022-05-22md: remove most calls to bdevnameChristoph Hellwig1-14/+10
2022-04-25md: Set MD_BROKEN for RAID1 and RAID10Mariusz Tkaczyk1-17/+26
2022-04-17block: remove QUEUE_FLAG_DISCARDChristoph Hellwig1-15/+1
2022-04-17block: add a bdev_nonrot helperChristoph Hellwig1-1/+1
2022-04-17block: turn bio_kmalloc into a simple kmalloc wrapperChristoph Hellwig1-4/+8
2022-03-26Merge tag 'for-5.18/write-streams-2022-03-18' of git://git.kernel.dk/linux-blockLinus Torvalds1-2/+0
2022-03-24Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsiLinus Torvalds1-3/+1
2022-03-21Merge tag 'for-5.18/drivers-2022-03-18' of git://git.kernel.dk/linux-blockLinus Torvalds1-11/+0
2022-03-08md: raid1/raid10: drop pending_cntMariusz Tkaczyk1-11/+0
2022-03-07block: remove the per-bio/request write hintChristoph Hellwig1-2/+0
2022-03-07raid1: stop using bio_devnameChristoph Hellwig1-3/+2
2022-02-22scsi: md: Remove WRITE_SAME supportChristoph Hellwig1-3/+1
2022-02-04block: pass a block_device to bio_clone_fastChristoph Hellwig1-17/+17
2022-02-02block: pass a block_device and opf to bio_resetChristoph Hellwig1-3/+2
2022-02-02block: pass a block_device and opf to bio_alloc_biosetChristoph Hellwig1-1/+2
2022-01-12Merge tag 'for-5.17/drivers-2022-01-11' of git://git.kernel.dk/linux-blockLinus Torvalds1-27/+56
2022-01-06md: raid1 add nowait supportVishal Verma1-20/+56
2022-01-06md: drop queue limitation for RAID1 and RAID10Mariusz Tkaczyk1-7/+0
2022-01-03md/raid1: fix missing bitmap update w/o WriteMostly devicesSong Liu1-1/+2
2021-10-18md/raid1: use rdev in raid1_write_request directlyGuoqing Jiang1-6/+5
2021-10-18md/raid1: only allocate write behind bio for WriteMostly deviceGuoqing Jiang1-1/+1
2021-08-30Merge tag 'for-5.15/drivers-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+19
2021-08-27raid1: ensure write behind bio has less than BIO_MAX_VECS sectorsGuoqing Jiang1-0/+19
2021-08-04Merge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/so...Jens Axboe1-2/+0
2021-07-23md/raid10: properly indicate failure when ending a failed write requestWei Shuyu1-2/+0
2021-06-14md/raid1: enable io accountingGuoqing Jiang1-0/+7
2021-06-14md/raid1: rename print_msg with r1bio_existedGuoqing Jiang1-4/+4
2021-04-23md/raid1: properly indicate failure when ending a failed write requestPaul Clements1-0/+2
2021-01-27md: remove bio_alloc_mddevChristoph Hellwig1-1/+1
2021-01-24block: store a block_device pointer in struct bioChristoph Hellwig1-3/+3
2020-12-04block: remove the request_queue argument to the block_bio_remap tracepointChristoph Hellwig1-4/+3
2020-07-08writeback: remove bdi->congested_fnChristoph Hellwig1-31/+0
2020-07-01block: rename generic_make_request to submit_bio_noacctChristoph Hellwig1-7/+7
2020-05-13md/raid1: release pending accounting for an I/O only after write-behind is al...David Jeffery1-6/+7
2020-01-13md/raid1: introduce wait_for_serializationGuoqing Jiang1-19/+22
2020-01-13md/raid1: use bucket based mechanism for IO serializationGuoqing Jiang1-3/+6
2020-01-13md: introduce a new struct for IO serializationGuoqing Jiang1-28/+33
2020-01-13raid1: serialize the overlap writeGuoqing Jiang1-14/+13
2020-01-13md: rename wb stuffsGuoqing Jiang1-21/+22
2019-12-11md: raid1: check rdev before reference in raid1_sync_request funcZhiqiang Liu1-1/+1
2019-11-11md/raid1: avoid soft lockup under high loadHannes Reinecke1-0/+1
2019-10-24md: improve handling of bio with REQ_PREFLUSH in md_flush_request()David Jeffery1-3/+2
2019-09-03md/raid1: fail run raid1 array when active disk less than oneYufen Yu1-1/+12
2019-08-07raid1: factor out a common routine to handle the completion of sync writeHou Tao1-21/+18
2019-08-07md: allow last device to be forcibly removed from RAID1/RAID10.Guoqing Jiang1-3/+3
2019-08-07md/raid1: end bio when the device faultyYufen Yu1-12/+14
2019-08-07raid1: use an int as the return value of raise_barrier()Hou Tao1-1/+4
2019-06-26md/raid1: Fix a warning message in remove_wb()Dan Carpenter1-1/+1
2019-06-20md/raid1: fix potential data inconsistency issue with write behind deviceGuoqing Jiang1-1/+67
2019-06-15md: raid1-10: Unify r{1,10}bio_pool_freeMarcos Paulo de Souza1-9/+4
2019-06-15md/raid1: get rid of extra blank line and spaceYufen Yu1-6/+3
2019-06-15drivers: md: Unify common definitions of raid1 and raid10Marcos Paulo de Souza1-27/+2
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 47Thomas Gleixner1-9/+1
2019-04-30block: remove the i argument to bio_for_each_segment_allChristoph Hellwig1-3/+3
2019-03-08Merge tag 'for-5.1/block-20190302' of git://git.kernel.dk/linux-blockLinus Torvalds1-5/+4
2019-02-15block: allow bio_for_each_segment_all() to iterate over multi-page bvecMing Lei1-1/+2
2019-02-12md/raid1: don't clear bitmap bits on interrupted recovery.Nate Dailey1-10/+18
2019-02-04raid1: simplify raid1_error functionYufen Yu1-4/+2
2018-10-14MD: fix invalid stored role for a disk - try2Shaohua Li1-0/+1
2018-08-18Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto...Linus Torvalds1-19/+16
2018-08-01md: Avoid namespace collision with bitmap APIAndy Shevchenko1-19/+16
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-4/+5
2018-06-12treewide: kmalloc() -> kmalloc_array()Kees Cook1-2/+2
2018-06-09Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-2/+2
2018-05-30md: convert to bioset_init()/mempool_init()Kent Overstreet1-39/+37
2018-05-17md/raid1: add error handling of read error from FailFast deviceGioh Kim1-0/+2
2018-05-01md: fix an error code format and remove unsed bio_sectorYufen Yu1-2/+0
2018-04-09raid1: copy write hint from master bio to behind bioMariusz Dabrowski1-0/+2
2018-04-09md/raid1: exit sync request if MD_RECOVERY_INTR is setYufen Yu1-5/+18
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/raid1: fix NULL pointer dereferenceYufen Yu1-0/+11
2018-02-17md/raid1: Fix trailing semicolonLuis de Bethencourt1-1/+1
2017-12-11md/raid1,raid10: silence warning about wait-within-waitNeilBrown1-0/+11
2017-12-01md/raid1/10: add missed blk plugShaohua Li1-0/+4
2017-11-01raid1: remove obsolete code in raid1_write_requestGuoqing Jiang1-13/+7
2017-11-01raid1: prevent freeze_array/wait_all_barriers deadlockNate Dailey1-18/+6
2017-11-01md: use TASK_IDLE instead of blocking signalsMikulas Patocka1-6/+1
2017-11-01md: remove special meaning of ->quiesce(.., 2)NeilBrown1-10/+3
2017-11-01md: move suspend_hi/lo handling into core md codeNeilBrown1-9/+5
2017-10-16md: rename some drivers/md/ files to have an "md-" prefixMike Snitzer1-1/+1
2017-10-16md-cluster: fix wrong condition check in raid1_write_requestGuoqing Jiang1-5/+5
2017-09-07Merge tag 'md/4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-2/+20
2017-08-28md: Runtime support for multiple pplsPawel Baldysiak1-1/+2
2017-08-25md/raid1/10: reset bio allocated from mempoolShaohua Li1-1/+18
2017-08-23block: replace bi_bdev with a gendisk pointer and partitions indexChristoph Hellwig1-19/+15
2017-07-21md: simplify code with bio_io_errorGuoqing Jiang1-2/+1
2017-07-21md/raid1: fix writebehind bio cloneShaohua Li1-21/+13