forked from openzfs/zfs
-
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.
Use GFP_ATOMIC for allocations that are required for swap on zvols
dmu_bio_clone(), __vdev_disk_physio() and vdev_disk_io_flush() are used when doing swap to a zvol. Failing to use GFP_ATOMIC permits them to block under memory pressure, which can prevent swap operations and cause deadlocks. We use GFP_ATOMIC | __GFP_HIGH for these allocations because they are required for swap operations on zvols. Signed-off-by: Richard Yao <ryao@cs.stonybrook.edu>
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 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