From: Daniel Vetter Date: Mon, 11 Apr 2016 17:21:06 +0000 (+0200) Subject: Merge tag 'v4.6-rc3' into drm-intel-next-queued X-Git-Tag: v4.7-rc1~77^2~60^2~1 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=commitdiff_plain;h=39702853197b191bda32315260255053aa3e57f7 Merge tag 'v4.6-rc3' into drm-intel-next-queued Linux 4.6-rc3 Backmerge requested by Chris Wilson to make his patches apply cleanly. Tiny conflict in vmalloc.c with the (properly acked and all) patch in drm-intel-next: commit 4da56b99d99e5a7df2b7f11e87bfea935f909732 Author: Chris Wilson Date: Mon Apr 4 14:46:42 2016 +0100 mm/vmap: Add a notifier for when we run out of vmap address space and Linus' tree. Signed-off-by: Daniel Vetter --- 39702853197b191bda32315260255053aa3e57f7 diff --cc mm/vmalloc.c index 12d27ac303ae,ae7d20b447ff..293889d7f482 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@@ -473,19 -468,9 +473,19 @@@ overflow purged = 1; goto retry; } + + if (gfpflags_allow_blocking(gfp_mask)) { + unsigned long freed = 0; + blocking_notifier_call_chain(&vmap_notify_list, 0, &freed); + if (freed > 0) { + purged = 0; + goto retry; + } + } + if (printk_ratelimit()) - pr_warn("vmap allocation for size %lu failed: " - "use vmalloc= to increase size.\n", size); + pr_warn("vmap allocation for size %lu failed: use vmalloc= to increase size\n", + size); kfree(va); return ERR_PTR(-EBUSY); }