aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
AgeCommit message (Expand)AuthorFilesLines
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
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-14/+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-8/+12
2017-06-18blk: replace bioset_create_nobvec() with a flags arg to bioset_create()NeilBrown1-1/+1
2017-06-16md/raid1: remove unused bio in sync_request_writeGuoqing Jiang1-3/+1
2017-06-13md: don't use flush_signals in userspace processesMikulas Patocka1-1/+4
2017-06-13md: fix deadlock between mddev_suspend() and md_write_start()NeilBrown1-4/+7
2017-06-12Merge tag 'v4.12-rc5' into for-4.13/blockJens Axboe1-0/+2
2017-06-09block: switch bios to blk_status_tChristoph Hellwig1-18/+18
2017-06-05md: initialise ->writes_pending in personality modules.NeilBrown1-0/+2
2017-05-12raid1: prefer disk without bad blocksTomasz Majchrzak1-1/+4
2017-05-11md/raid1/10: avoid unnecessary lockingShaohua Li1-4/+3
2017-05-08md: don't return -EAGAIN in md_allow_write for external metadata arraysArtur Paszkiewicz1-6/+3
2017-05-01Merge branch 'md-next' into md-linusShaohua Li1-390/+289
2017-04-27md/raid1: Use a new variable to count flighting sync requestsXiao Ni1-3/+4
2017-04-25md: clear WantReplacement once disk is removedGuoqing Jiang1-3/+3
2017-04-23md/raid1/10: remove unused queueLidong Zhong1-3/+0
2017-04-11md/raid1: factor out flush_bio_list()NeilBrown1-40/+26
2017-04-11md/raid1: simplify handle_read_error().NeilBrown1-80/+60
2017-04-11md/raid1: simplify alloc_behind_master_bio()NeilBrown1-7/+4
2017-04-11md/raid1: simplify the splitting of requests.NeilBrown1-91/+50
2017-04-10md/raid1: avoid reusing a resync bio after error handling.NeilBrown1-0/+2
2017-04-08md: support REQ_OP_WRITE_ZEROESChristoph Hellwig1-1/+3
2017-03-28md: raid1: kill warning on powerpc_pseriesMing Lei1-1/+1
2017-03-25md/raid1: skip data copy for behind io for discard requestShaohua Li1-1/+5
2017-03-24md: raid1: improve write behindMing Lei1-64/+54
2017-03-24md: raid1: move 'offset' out of loopMing Lei1-2/+3
2017-03-24md: raid1: use bio helper in process_checks()Ming Lei1-4/+8
2017-03-24md: raid1: retrieve page from pre-allocated resync page arrayMing Lei1-8/+8
2017-03-24md: raid1: don't use bio's vec table to manage resync pagesMing Lei1-29/+64
2017-03-24md: raid1: simplify r1buf_pool_free()Ming Lei1-9/+8
2017-03-24md: move two macros into md.hMing Lei1-2/+0
2017-03-24md: raid1/raid10: don't handle failure of bio_add_page()Ming Lei1-16/+6
2017-03-22md/raid1: stop using bi_phys_segmentNeilBrown1-66/+23
2017-03-22md/raid1, raid10: move rXbio accounting closer to allocation.NeilBrown1-13/+11
2017-03-16md: superblock changes for PPLArtur Paszkiewicz1-1/+2
2017-03-14md/raid1: fix a trivial typo in commentsZhilong Liu1-1/+1
2017-03-09md/raid1/10: fix potential deadlockShaohua Li1-2/+23
2017-03-09md: move funcs from pers->resize to update_sizeGuoqing Jiang1-2/+0
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+3
2017-02-24Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/mdLinus Torvalds1-230/+366
2017-02-23md/raid1: fix write behind issues introduced by bio_clone_bioset_partialShaohua Li1-4/+11
2017-02-23md/raid1: handle flush request correctlyShaohua Li1-3/+7
2017-02-19md/raid1: fix a use-after-free bugShaohua Li1-1/+2
2017-02-19RAID1: avoid unnecessary spin locks in I/O barrier codecolyli@suse.de1-51/+114
2017-02-19RAID1: a new I/O barrier implementation to remove resync windowcolyli@suse.de1-212/+261
2017-02-15md: fast clone bio in bio_clone_mddev()Ming Lei1-4/+6
2017-02-15md/raid1: use bio_clone_bioset_partial() in case of write behindMing Lei1-5/+15
2017-02-02block: Use pointer to backing_dev_info from request_queueJan Kara1-2/+2
2017-01-27md: cleanup bio op / flags handling in raid1_write_requestChristoph Hellwig1-5/+2
2017-01-05md: cleanup mddev flag clear for takeoverShaohua Li1-2/+6
2017-01-03md/raid1: Refactor raid1_make_requestRobert LeBlanc1-128/+139
2016-12-08md: separate flags for superblock changesShaohua Li1-6/+6
2016-12-08md: takeover should clear unrelated bitsShaohua Li1-1/+4
2016-11-22md/raid1: add failfast handling for writes.NeilBrown1-1/+25
2016-11-22md/raid1: add failfast handling for reads.NeilBrown1-10/+42
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/+24
2016-11-09md/raid1: fix: IO can block resync indefinitelyNeilBrown1-1/+1
2016-11-07md/raid1: abort delayed writes when device fails.NeilBrown1-5/+15
2016-11-07md/raid1: change printk() to pr_*()NeilBrown1-58/+41
2016-10-28raid1: handle read error also in readonly modeTomasz Majchrzak1-9/+10