Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1588179 > unrolled thread
| Started by | Paolo Valente <paolo.valente@linaro.org> |
|---|---|
| First post | 2017-02-25 18:50 +0100 |
| Last post | 2017-02-25 20:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[WIP BRANCH] cgroups support in bfq-mq WIP branch Paolo Valente <paolo.valente@linaro.org> - 2017-02-25 18:50 +0100
Re: [WIP BRANCH] cgroups support in bfq-mq WIP branch Jens Axboe <axboe@kernel.dk> - 2017-02-25 20:00 +0100
| From | Paolo Valente <paolo.valente@linaro.org> |
|---|---|
| Date | 2017-02-25 18:50 +0100 |
| Subject | [WIP BRANCH] cgroups support in bfq-mq WIP branch |
| Message-ID | <teODL-2S0-7@gated-at.bofh.it> |
Hi,
I've just completed cgroups support, and I'd like to highlight the
main blk-mq issue that I have found along the way. I have pushed the
commit that completes the support for cgroups to the usual WIP branch
[1]. Before moving to this issue, I have preliminary question about
the scheduler name, since I'm about to start preparing the patch
series for submission. So far, I have used bfq-mq as a temporary
name. Are we fine with it, or should I change it, for example, to
just bfq? Jens?
I've found a sort of circular dependency in blk-mq, related to
scheduler initialization. To describe both the issue and how I've
addressed it, I'm pasting the message of the new commit.
This commit completes cgroups support for bfq-mq. In particular, it deals with
a sort of circular dependency introduced in blk-mq: the function
blkcg_activate_policy, invoked during scheduler initialization, triggers the
invocation of the has_work scheduler hook (before the init function is
finished). To adress this issue, this commit moves the invocation of
blkcg_activate_policy after the initialization of all the fields that could be
initialized before invoking blkcg_activate_policy itself. This enables has_work
to correctly return false, and thus to prevent the blk-mq stack from invoking
further scheduler hooks before the init function is finished.
Thanks,
Paolo
[1] https://github.com/Algodev-github/bfq-mq
[toc] | [next] | [standalone]
| From | Jens Axboe <axboe@kernel.dk> |
|---|---|
| Date | 2017-02-25 20:00 +0100 |
| Message-ID | <tePJw-3Ad-9@gated-at.bofh.it> |
| In reply to | #1588179 |
On 02/25/2017 10:44 AM, Paolo Valente wrote: > Hi, > I've just completed cgroups support, and I'd like to highlight the > main blk-mq issue that I have found along the way. I have pushed the > commit that completes the support for cgroups to the usual WIP branch > [1]. Before moving to this issue, I have preliminary question about > the scheduler name, since I'm about to start preparing the patch > series for submission. So far, I have used bfq-mq as a temporary > name. Are we fine with it, or should I change it, for example, to > just bfq? Jens? Just call it 'bfq', that doesn't conflict with anything that's in the kernel already. > I've found a sort of circular dependency in blk-mq, related to > scheduler initialization. To describe both the issue and how I've > addressed it, I'm pasting the message of the new commit. Rebase your patches on top of Linus current master, some of them will need to change and some can be dropped. And disentangle it completely from the old bfq, I don't want to see nasty stuff like includes of .c files with prior defines modifying behavior of functions. When that's done, get it posted for review asap. I would imagine we will go through a few postings and review cycles, and if we're targeting 4.12 with this, then we should get the ball rolling on that side. -- Jens Axboe
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web