RE: [PATCH v5] x86/sgx: Report RCU-Tasks quiescent state in EPC sanitization loop
"Miao, Jun" <[email protected]> Thu, 23 Jul 2026 09:57:33 +0000
| Newsgroups | org.kernel.vger.linux-sgx,org.kernel.vger.bpf,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <PH7PR11MB84559DCC54D746868A3424D39AC02@PH7PR11MB8455.namprd11.prod.outlook.com> |
>You should probably also say why cond_resched() does not trigger >rescheduling. E.g., put that and delete the first sentence as it tells not= hing >and is confusing. Hi BR, Jarkko, How about I place the explanation as a comment above the code at the v6 ver= sion ? See the description below. Warm regards Jun Miao >> --- a/arch/x86/kernel/cpu/sgx/main.c >> +++ b/arch/x86/kernel/cpu/sgx/main.c >> - cond_resched(); + /* + * cond_resched() only schedules when TIF_NEED_RESCHED is s= et. + * During this boot-time loop that condition may not happen= for a + * long time, so report an RCU-Tasks quiescent state explic= itly. + */ >> + cond_resched_tasks_rcu_qs(); >> } >> >> list_splice(&dirty, dirty_page_list); >> -- >> 2.32.0 >> > > >BR, Jarkko