From: <jiang.biao2@zte.com.cn>
To: <axboe@kernel.dk>
Cc: <paolo.valente@linaro.org>, <linux-block@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <tj@kernel.org>,
<zhong.weidong@zte.com.cn>, <wen.yang99@zte.com.cn>,
<ulf.hansson@linaro.org>, <linus.walleij@linaro.org>,
<broonie@kernel.org>
Subject: Re: [PATCH] blkcg: not hold blkcg lock when deactivating policy.
Date: Thu, 19 Apr 2018 10:37:29 +0800 (CST) [thread overview]
Message-ID: <201804191037299600932@zte.com.cn> (raw)
In-Reply-To: <bb119bf0-b7f2-cb25-8de4-6016a3dd7a9e@kernel.dk>
[-- Attachment #1.1: Type: text/plain, Size: 952 bytes --]
>>> It might make sense to lock it separately, but I would not worry
>>> about it unless it shows up as hot in your testing.
>> Actually, we've met a triggering of nmi_watchdog, blocked at the queue lock
>> in blkcg_print_blkgs(), caused by the slow serial console and too many printks.
>> Related discussion is here,
>> https://bugzilla.kernel.org/show_bug.cgi?id=199003
>> Even though it's not caused by the queue lock directly, it would not happen
>> without using queue lock. The queue lock is big and used too widely, using it
>> would intensify the race, so we're trying to understand the locks using in blkg,
>> and maybe could improve the situation.
>
> The queue lock is only used widely on non blk-mq, where it is the only
> lock really. Doing serial IO under a spinlock is always going to suck,
> regardless of how contended it is.
It's not a problem of queue lock indeed, just want to dig deeper. :)
Thanks for the reply.
Jiang,
Regards
prev parent reply other threads:[~2018-04-19 2:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 7:10 [PATCH] blkcg: not hold blkcg lock when deactivating policy Jiang Biao
2018-04-17 12:32 ` Paolo Valente
2018-04-18 9:18 ` jiang.biao2
2018-04-18 12:45 ` Paolo Valente
2018-04-18 14:40 ` Jens Axboe
2018-04-19 0:54 ` jiang.biao2
2018-04-19 2:09 ` Jens Axboe
2018-04-19 2:37 ` jiang.biao2 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201804191037299600932@zte.com.cn \
--to=jiang.biao2@zte.com.cn \
--cc=axboe@kernel.dk \
--cc=broonie@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paolo.valente@linaro.org \
--cc=tj@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=wen.yang99@zte.com.cn \
--cc=zhong.weidong@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.