Re: [RFC PATCH 3/4] x86/sgx: Obtain backing storage page with enclave mutex held

Dave Hansen
2022-04-28T21:58:38Z

On 4/28/22 13:11, Reinette Chatre wrote:
> @@ -252,6 +252,7 @@ static void sgx_reclaimer_write(struct sgx_epc_page *epc_page,
> sgx_encl_ewb(epc_page, backing);
> encl_page->epc_page = NULL;
> encl->secs_child_cnt--;
> + sgx_encl_put_backing(backing, true);

Could you also talk a bit about why this needed to move? It's a bit
harder to make sense of the refcounting when the get and put are done in
different functions.