Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'md-6.17-20250905' of https://git.kernel.org/pub/scm/linux/kernel/git/mdraid/linux into block-6.17

Pull MD fixes from Yu:

"- fix data loss for writemostly in raid1, by Yu Kuai;
- fix potentional data lost by skipping recovery, by Li Nan;"

* tag 'md-6.17-20250905' of https://git.kernel.org/pub/scm/linux/kernel/git/mdraid/linux:
md: prevent incorrect update of resync/recovery offset
md/raid1: fix data lost for writemostly rdev

+6 -1
+5
drivers/md/md.c
··· 9125 9125 } 9126 9126 9127 9127 action = md_sync_action(mddev); 9128 + if (action == ACTION_FROZEN || action == ACTION_IDLE) { 9129 + set_bit(MD_RECOVERY_INTR, &mddev->recovery); 9130 + goto skip; 9131 + } 9132 + 9128 9133 desc = md_sync_action_name(action); 9129 9134 mddev->last_sync_action = action; 9130 9135
+1 -1
drivers/md/raid1.c
··· 1225 1225 int i = 0; 1226 1226 struct bio *behind_bio = NULL; 1227 1227 1228 - behind_bio = bio_alloc_bioset(NULL, vcnt, 0, GFP_NOIO, 1228 + behind_bio = bio_alloc_bioset(NULL, vcnt, bio->bi_opf, GFP_NOIO, 1229 1229 &r1_bio->mddev->bio_set); 1230 1230 1231 1231 /* discard op, we don't support writezero/writesame yet */