lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <00519647-0993-4e7c-0990-283358c1865b@oracle.com>
Date:   Tue, 19 Nov 2019 13:12:07 -0800
From:   Junxiao Bi <junxiao.bi@...cle.com>
To:     Junxiao Bi <junxiao.bi@...cle.com>, linux-kernel@...r.kernel.org
Cc:     axboe@...nel.dk
Subject: Re: [PATCH] block-mq: ratelimit the warning log

Anybody help reviewing this?

On 11/14/19 3:02 PM, Junxiao Bi wrote:
> When doing cpu online/offlile, sometimes this warning will be triggered,
> it's harmless, io will be dispatched. But sometimes it warns too much and
> even stall the whole system, so ratelimit it.
>
> Signed-off-by: Junxiao Bi <junxiao.bi@...cle.com>
> ---
>   block/blk-mq.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/block/blk-mq.c b/block/blk-mq.c
> index ec791156e9cc..846f5d26c523 100644
> --- a/block/blk-mq.c
> +++ b/block/blk-mq.c
> @@ -1384,7 +1384,7 @@ static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx)
>   	 *   handle dispatched requests to this hctx
>   	 */
>   	if (!cpumask_test_cpu(raw_smp_processor_id(), hctx->cpumask) &&
> -		cpu_online(hctx->next_cpu)) {
> +		cpu_online(hctx->next_cpu) && printk_ratelimit()) {
>   		printk(KERN_WARNING "run queue from wrong CPU %d, hctx %s\n",
>   			raw_smp_processor_id(),
>   			cpumask_empty(hctx->cpumask) ? "inactive": "active");

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ