Re: [Xen-devel] [PATCH v2] xen/sched: fix error path in cpupool_unassign_cpu_start()

2020-03-03 Thread Dario Faggioli
On Tue, 2020-03-03 at 10:27 +0100, Juergen Gross wrote: > In case moving away all domains from the cpu to be removed is failing > in cpupool_unassign_cpu_start() the error path is missing to release > sched_res_rculock. > > The normal exit path is releasing domlist_read_lock instead (this is > cur

[Xen-devel] [PATCH v2] xen/sched: fix error path in cpupool_unassign_cpu_start()

2020-03-03 Thread Juergen Gross
In case moving away all domains from the cpu to be removed is failing in cpupool_unassign_cpu_start() the error path is missing to release sched_res_rculock. The normal exit path is releasing domlist_read_lock instead (this is currently no problem as the reference to the specific rcu lock is not u