Commit a0f15c2
committed
Merge: Backport revert of commit "readahead: properly shorten readahead when falling back to do_page_cache_ra()"
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/166
Upstream found out that this commit can cause an integer underflow in
the fs readahead code, which causes it to read a huge amount of data,
from the storage device, stalling IO on the host,
which in turn can in some extreme cases (e.g using NFS or a hard disk)
even cause I/O timeouts.
In our case this caused VMs after v2v conversion to fail to finish first boot
script and bluescreen or otherwise hang during its execution because they
started to timeout on I/O.
JIRA: https://issues.redhat.com/browse/RHEL-55724
JIRA: https://issues.redhat.com/browse/RHEL-56929
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Approved-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Approved-by: Herton R. Krzesinski <herton@redhat.com>
Approved-by: Rafael Aquini <raquini@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Jan Stancek <jstancek@redhat.com>1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
457 | | - | |
| 456 | + | |
458 | 457 | | |
459 | 458 | | |
460 | 459 | | |
| |||
517 | 516 | | |
518 | 517 | | |
519 | 518 | | |
520 | | - | |
| 519 | + | |
521 | 520 | | |
522 | 521 | | |
523 | 522 | | |
| |||
0 commit comments