• Mike Rapoport's avatar
    lazy-pages: make uffd_io_complete more robust · 8d91b2e3
    Mike Rapoport authored
    Make sure we handle various corner cases:
    * we received less pages than requested
    * the request was capped because of unmap/remap etc
    * the process has exited underneath us
    
    Currently we are freeing the request once we've found the address to use
    with uffd_copy(). Instead, let's keep the request object around, use it to
    properly calculate number of pages we pass to uffd_copy() and then re-add
    tailing range (if any) to the IOVs list.
    Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    8d91b2e3
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...