Skip to content

Commit d6e035a

Browse files
biger410liu-song-6
authored andcommitted
md: bypass block throttle for superblock update
commit 5e2cf33 ("md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d") introduced a hung bug and will be reverted in next patch, since the issue that commit is fixing is due to md superblock write is throttled by wbt, to fix it, we can have superblock write bypass block layer throttle. Fixes: 5e2cf33 ("md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d") Cc: [email protected] # v5.19+ Suggested-by: Yu Kuai <[email protected]> Signed-off-by: Junxiao Bi <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]> Reviewed-by: Yu Kuai <[email protected]> Signed-off-by: Song Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 668bfee commit d6e035a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/md/md.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,9 +1013,10 @@ void md_super_write(struct mddev *mddev, struct md_rdev *rdev,
10131013
return;
10141014

10151015
bio = bio_alloc_bioset(rdev->meta_bdev ? rdev->meta_bdev : rdev->bdev,
1016-
1,
1017-
REQ_OP_WRITE | REQ_SYNC | REQ_PREFLUSH | REQ_FUA,
1018-
GFP_NOIO, &mddev->sync_set);
1016+
1,
1017+
REQ_OP_WRITE | REQ_SYNC | REQ_IDLE | REQ_META
1018+
| REQ_PREFLUSH | REQ_FUA,
1019+
GFP_NOIO, &mddev->sync_set);
10191020

10201021
atomic_inc(&rdev->nr_pending);
10211022

0 commit comments

Comments
 (0)