diff options
| author | Thomas Hellstrom <[email protected]> | 2018-10-12 14:58:12 +0000 |
|---|---|---|
| committer | Thomas Hellstrom <[email protected]> | 2019-06-18 13:19:33 +0000 |
| commit | c9e5f41f732057097cd66ab7b01e7f7a2ff6c795 (patch) | |
| tree | 9ed5853df4a1ce6985981bf23fedb55d9a0145de /lib/test_stackinit.c | |
| parent | drm/vmwgfx: Assign eviction priorities to resources (diff) | |
| download | kernel-c9e5f41f732057097cd66ab7b01e7f7a2ff6c795.tar.gz kernel-c9e5f41f732057097cd66ab7b01e7f7a2ff6c795.zip | |
mm: Allow the [page|pfn]_mkwrite callbacks to drop the mmap_sem
Driver fault callbacks are allowed to drop the mmap_sem when expecting
long hardware waits to avoid blocking other mm users. Allow the mkwrite
callbacks to do the same by returning early on VM_FAULT_RETRY.
In particular we want to be able to drop the mmap_sem when waiting for
a reservation object lock on a GPU buffer object. These locks may be
held while waiting for the GPU.
Cc: Andrew Morton <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Huang Ying <[email protected]>
Cc: Souptick Joarder <[email protected]>
Cc: "Jérôme Glisse" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
