On 12/01/21 12:33, Lai Jiangshan wrote: >> I thought only pcpu pools would get the POOL_DISASSOCIATED flag on >> offline, but it seems unbound pools also get it at init time. Did I get >> that right? > > You are right. > > The POOL_DISASSOCIATED flag indicates whether the pool is concurrency > management or not (negative way, POOL_DISASSOCIATED means "not concurrency > management"). So it should be applied for all unbound pools. > > When !POOL_DISASSOCIATED means it is a percpu pool, and the pool->cpu > is online and the offline callback has not been called yet even the pool->cpu > is going to be offline. So !POOL_DISASSOCIATED is used a lot in the code.
Thanks!