forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block, direct-io: fix OOM by converting to bio_for_each_page_all()
There has been an occasional out-of-memory problem with multipage bvecs. Fix the bug by converting bio_for_each_segment_all() to bio_for_each_page_all(), both in bio_check_pages_dirty() and dio_bio_complete(). To reproduce the OOM, run xfstests/generic/113 infinitely: while [ 1 ] ; do ./check generic/113 done TODO: audit other uses of bio_for_each_segment_all() Signed-off-by: Ming Lin <mlin@minggr.net> [dpark: add more description into commit message] Signed-off-by: Dongsu Park <dongsu.park@profitbricks.com>
- Loading branch information
Ming Lin
authored and
Dongsu Park
committed
Dec 29, 2014
1 parent
3ac9061
commit 25fdad5
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters