aboutsummaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMichel Dänzer2018-04-25 17:32:10 +0200
committerAlex Deucher2018-05-09 15:16:30 -0500
commitda291320baec914f0bb4e65a9dccb86bd6c728f2 (patch)
tree52ee6d36e6a3bc4f684dfe54841fd9aa0971ffee /drivers/net
parentbd4caed47a19f25fe8674344ea06d469c27ac314 (diff)
drm/ttm: Use GFP_TRANSHUGE_LIGHT for allocating huge pages
GFP_TRANSHUGE tries very hard to allocate huge pages, which can result in long delays with high memory pressure. I have observed firefox freezing for up to around a minute due to this while restic was taking a full system backup. Since we don't really need huge pages, use GFP_TRANSHUGE_LIGHT | __GFP_NORETRY instead, in order to fail quickly when there are no huge pages available. Set __GFP_KSWAPD_RECLAIM as well, in order for huge pages to be freed up in the background if necessary. With these changes, I'm no longer seeing freezes during a restic backup. Cc: stable@vger.kernel.org Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions