Commit e879a0d
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/[email protected]
Signed-off-by: Yu Kuai <[email protected]>1 parent 1320fe8 commit e879a0d
2 files changed
+0
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
1320 | | - | |
1321 | | - | |
1322 | 1320 | | |
1323 | 1321 | | |
1324 | 1322 | | |
| |||
1406 | 1404 | | |
1407 | 1405 | | |
1408 | 1406 | | |
1409 | | - | |
1410 | 1407 | | |
1411 | 1408 | | |
1412 | 1409 | | |
| |||
1655 | 1652 | | |
1656 | 1653 | | |
1657 | 1654 | | |
1658 | | - | |
1659 | | - | |
1660 | 1655 | | |
1661 | 1656 | | |
1662 | 1657 | | |
| |||
| 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