Commit 987faed
committed
md/raid1,raid10: don't ignore IO flags
JIRA: https://issues.redhat.com/browse/RHEL-83988
commit e879a0d
Author: Yu Kuai <yukuai3@huawei.com>
Date: Thu Feb 27 20:16:57 2025 +0800
md/raid1,raid10: don't ignore IO flags
If blk-wbt is enabled by default, it's found that raid write performance
is quite bad because all IO are throttled by wbt of underlying disks,
due to flag REQ_IDLE is ignored. And turns out this behaviour exist since
blk-wbt is introduced.
Other than REQ_IDLE, other flags should not be ignored as well, for
example REQ_META can be set for filesystems, clearing it can cause priority
reverse problems; And REQ_NOWAIT should not be cleared as well, because
io will wait instead of failing directly in underlying disks.
Fix those problems by keep IO flags from master bio.
Fises: f51d46d ("md: add support for REQ_NOWAIT")
Fixes: e34cbd3 ("blk-wbt: add general throttling mechanism")
Fixes: 5404bc7 ("[PATCH] Allow file systems to differentiate between data and meta reads")
Link: https://lore.kernel.org/linux-raid/20250227121657.832356-1-yukuai1@huaweicloud.com
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>1 parent 138203d commit 987faed
2 files changed
+0
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
1319 | | - | |
1320 | | - | |
1321 | 1319 | | |
1322 | 1320 | | |
1323 | 1321 | | |
| |||
1405 | 1403 | | |
1406 | 1404 | | |
1407 | 1405 | | |
1408 | | - | |
1409 | 1406 | | |
1410 | 1407 | | |
1411 | 1408 | | |
| |||
1654 | 1651 | | |
1655 | 1652 | | |
1656 | 1653 | | |
1657 | | - | |
1658 | | - | |
1659 | 1654 | | |
1660 | 1655 | | |
1661 | 1656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
1150 | | - | |
1151 | | - | |
1152 | 1150 | | |
1153 | 1151 | | |
1154 | 1152 | | |
| |||
1229 | 1227 | | |
1230 | 1228 | | |
1231 | 1229 | | |
1232 | | - | |
1233 | 1230 | | |
1234 | 1231 | | |
1235 | 1232 | | |
| |||
1248 | 1245 | | |
1249 | 1246 | | |
1250 | 1247 | | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | 1248 | | |
1256 | 1249 | | |
1257 | 1250 | | |
| |||
1270 | 1263 | | |
1271 | 1264 | | |
1272 | 1265 | | |
1273 | | - | |
1274 | 1266 | | |
1275 | 1267 | | |
1276 | 1268 | | |
| |||
0 commit comments