aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sram.h
diff options
context:
space:
mode:
authorNadav Amit <namit@vmware.com>2018-09-20 10:30:13 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-25 20:11:42 +0200
commit8fa3c61a79868ad3529f1dc61709a4c46adab467 (patch)
treed9efc09fcf206e22284dc44ceb8173bda0886fe7 /drivers/misc/sram.h
parentvmw_balloon: change batch/single lock abstractions (diff)
downloadlinux-dev-8fa3c61a79868ad3529f1dc61709a4c46adab467.tar.xz
linux-dev-8fa3c61a79868ad3529f1dc61709a4c46adab467.zip
vmw_balloon: treat all refused pages equally
Currently, when the hypervisor rejects a page during lock operation, the VM treats pages differently according to the error-code: in certain cases the page is immediately freed, and in others it is put on a rejection list and only freed later. The behavior does not make too much sense. If the page is freed immediately it is very likely to be used again in the next batch of allocations, and be rejected again. In addition, for support of compaction and OOM notifiers, we wish to separate the logic that communicates with the hypervisor (as well as analyzes the status of each page) from the logic that allocates or free pages. Treat all errors the same way, queuing the pages on the refuse list. Move to the next allocation size (4k) when too many pages are refused. Free the refused pages when moving to the next size to avoid situations in which too much memory is waiting to be freed on the refused list. Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com> Signed-off-by: Nadav Amit <namit@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/sram.h')
0 files changed, 0 insertions, 0 deletions