[lkml]   [2021]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 2/5] x86/sgx: Optimize the locking range in sgx_sanitize_section()
On Sun, Jan 24, 2021 at 02:29:04PM +0800, Tianjia Zhang wrote:
> The spin lock of sgx_epc_section only locks the page_list. The
> EREMOVE operation and init_laundry_list is not necessary in the
> protection range of the spin lock. This patch reduces the lock
> range of the spin lock in the function sgx_sanitize_section()
> and only protects the operation of the page_list.
> Suggested-by: Sean Christopherson <>
> Signed-off-by: Tianjia Zhang <>

I prefer to use the word "optimize" only if there is supporting
data to show that the code change has significant value.


 \ /
  Last update: 2021-01-30 14:29    [W:0.243 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site