Two small enchancements, and a rework of the sgx_free_page() split that was sent in a previous series. Sean Christopherson (3): x86/sgx: Update the free page count in a single operation x86/sgx: Do not add in-use EPC page to the free page list x86/sgx: Move reclaim logic out of sgx_free_page() arch/x86/kernel/cpu/sgx/encl.c | 3 ++- arch/x86/kernel/cpu/sgx/main.c | 36 +++++++++---------------------- arch/x86/kernel/cpu/sgx/reclaim.c | 32 +++++++++++++++++++++++++++ arch/x86/kernel/cpu/sgx/sgx.h | 3 ++- 4 files changed, 46 insertions(+), 28 deletions(-) -- 2.22.0