diff options
author | Junxiao Bi <[email protected]> | 2023-11-08 10:22:15 -0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-11-27 15:46:16 -0800 |
commit | d6e035aad6c09991da1c667fb83419329a3baed8 (patch) | |
tree | de6636c2fbe84c94ccfa1ba4e1918171fbf78936 | |
parent | 668bfeeabb5e402e3b36992f7859c284cc6e594d (diff) |
md: bypass block throttle for superblock update
commit 5e2cf333b7bd ("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: 5e2cf333b7bd ("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]
-rw-r--r-- | drivers/md/md.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index c94373d64f2c..466bbcb4e230 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -1013,9 +1013,10 @@ void md_super_write(struct mddev *mddev, struct md_rdev *rdev, return; bio = bio_alloc_bioset(rdev->meta_bdev ? rdev->meta_bdev : rdev->bdev, - 1, - REQ_OP_WRITE | REQ_SYNC | REQ_PREFLUSH | REQ_FUA, - GFP_NOIO, &mddev->sync_set); + 1, + REQ_OP_WRITE | REQ_SYNC | REQ_IDLE | REQ_META + | REQ_PREFLUSH | REQ_FUA, + GFP_NOIO, &mddev->sync_set); atomic_inc(&rdev->nr_pending); |