Commit 78f1fe9
md/raid1,raid10: don't ignore IO flags
commit e879a0d upstream.
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>
[ Harshit: Resolve conflicts due to missing commit: f2a38ab
("md/raid1: Atomic write support") and commit: a1d9b4f
("md/raid10: Atomic write support") in 6.12.y, we don't have Atomic
writes feature in 6.12.y ]
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 73506e581c0b1814cdfd2229d589f30751d7de26)1 parent 4ed7f88 commit 78f1fe9
2 files changed
+0
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
1319 | | - | |
1320 | 1318 | | |
1321 | 1319 | | |
1322 | 1320 | | |
| |||
1399 | 1397 | | |
1400 | 1398 | | |
1401 | 1399 | | |
1402 | | - | |
1403 | 1400 | | |
1404 | 1401 | | |
1405 | 1402 | | |
| |||
1619 | 1616 | | |
1620 | 1617 | | |
1621 | 1618 | | |
1622 | | - | |
1623 | 1619 | | |
1624 | 1620 | | |
1625 | 1621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1146 | 1146 | | |
1147 | 1147 | | |
1148 | 1148 | | |
1149 | | - | |
1150 | | - | |
1151 | 1149 | | |
1152 | 1150 | | |
1153 | 1151 | | |
| |||
1226 | 1224 | | |
1227 | 1225 | | |
1228 | 1226 | | |
1229 | | - | |
1230 | 1227 | | |
1231 | 1228 | | |
1232 | 1229 | | |
| |||
1240 | 1237 | | |
1241 | 1238 | | |
1242 | 1239 | | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | 1240 | | |
1247 | 1241 | | |
1248 | 1242 | | |
| |||
1261 | 1255 | | |
1262 | 1256 | | |
1263 | 1257 | | |
1264 | | - | |
1265 | 1258 | | |
1266 | 1259 | | |
1267 | 1260 | | |
| |||
0 commit comments