Re: [PATCH RFC 10/22] block, bfq: add full hierarchical scheduling and cgroups support

From: Tejun Heo
Date: Fri Apr 22 2016 - 15:32:27 EST


Hello, Paolo.

On Fri, Apr 22, 2016 at 09:05:14PM +0200, Paolo Valente wrote:
> > Ah, right, I was confused. cic is always associated with the task and
> > yes a writeback worker can trigger blkcg changed events frequently as
> > it walks through different cgroups. Is this an issue?
>
> Thatâs exactly the source of my confusion: why does the worker walk
> through different cgroups all the time if the I/O is originated by
> the same process, which never changes group?

Because the workqueue workers aren't tied to individual workqueues,
they wander around serving different workqueues. This might change if
we eventually update workqueues to be cgroup aware but for now it's
expected to happen.

Thanks.

--
tejun