Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp744646imm; Fri, 31 Aug 2018 12:03:13 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbh72+OwPMQ+5N8u9mhPlXJd+w/uc1MeOZ4FzXmka9PB7GZSYUEgY4IxMg0dw/0Szqil4Ty X-Received: by 2002:aa7:8591:: with SMTP id w17-v6mr17431576pfn.77.1535742193705; Fri, 31 Aug 2018 12:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535742193; cv=none; d=google.com; s=arc-20160816; b=qFYylPuNAR6mrgediR83f/RgdDTPjC1KuO9G5O+IDF2vfxDnKCyjemkmabmWUMS/7C LW8lKb79SPLBXGoZFh9hvU6FCqUlQ9HN7KgFXoEJXJf7ykv095GsD/xZh4pY4ru1ihuf 3cc3I87JjlZXAfAE7so/p5Iit7i+XYFzOYX0wXXA9HDSrTMlmp/KCPrL61OC4GXVBA43 kQj9IkM2qRr2U6rneioUp5FgPtfnnZ/wb4ZrF7m6ndkc08z2hW4tOiV/mkk5TF2Vpk98 OWgFsY7PuEMBjybwB0ZQzgSsOKbmLQ4y63PzmzjsyHVfE1GVhSvo68HMpvWCZVWLFvPF THow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:arc-authentication-results; bh=hqHMUDmFZx+qGijtwXUeZoWn3/L314ECSf+W3+n5v8Q=; b=TLBazoBEPAaaRhNu/sIW9dGt+H4xk82kj7OcTvVgtpWgtwR4FdslyVxM3tA/rb4lqI zkxCYX7/UR3myNJ5PaK/zyhjzqgtaYdfdJrwj/dKurs9b3ayg1TGU5C3XGhBqR1nymme 1hpv3W9zuhCoC0dkIOIM60AeJRECVOmScc1DJhY4JCHQgQVz6FYdD9FK1WxNvU5yteoK +plQ96luJxZ7e91sqljbUQz8cuzhPQj6DxbrxhxHhzbuDcLy/O5+AQjk1QxQRkX/PXWK GxkMFImIxRp+oN9YItdsdpdZ56f1Daa+nbT3VGBOPk8MI1CSBKDvpqCoXEuI+Xd/lkEU FQZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21-v6si10094586pgc.658.2018.08.31.12.02.56; Fri, 31 Aug 2018 12:03:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727273AbeHaXKe (ORCPT + 99 others); Fri, 31 Aug 2018 19:10:34 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:36891 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbeHaXKe (ORCPT ); Fri, 31 Aug 2018 19:10:34 -0400 X-IronPort-AV: E=Sophos;i="5.53,312,1531778400"; d="scan'208";a="277355822" Received: from static-72-28-92-218.gtcust.grouptelecom.net (HELO hadrien) ([72.28.92.218]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Aug 2018 21:01:41 +0200 Date: Fri, 31 Aug 2018 12:01:38 -0700 (PDT) From: Julia Lawall X-X-Sender: jll@hadrien To: dennisszhou@gmail.com cc: Jens Axboe , Tejun Heo , Johannes Weiner , Josef Bacik , kernel-team@fb.com, linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, "Dennis Zhou (Facebook)" Subject: [PATCH] blkcg: fix call_kern.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kbuild test robot block/blk-cgroup.c:243:57-67: ERROR: function blkg_create called on line 1260 inside lock on line 1259 but uses GFP_KERNEL block/blk-cgroup.c:243:57-67: ERROR: function blkg_create called on line 922 inside lock on line 911 but uses GFP_KERNEL Generated by: scripts/coccinelle/locks/call_kern.cocci Fixes: 6ef69a3a0b4a ("blkcg: change blkg reference counting to use percpu_ref") CC: Dennis Zhou (Facebook) Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Dennis-Zhou/blkcg-ref-count-refactor-cleanup-blkcg-avg_lat/20180831-161742 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next :::::: branch date: 10 hours ago :::::: commit date: 10 hours ago The kbuild report doesn't include enough context to check this. Please check whether this is appropriate and whether another approach would be better. blk-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -240,7 +240,7 @@ static struct blkcg_gq *blkg_create(stru blkg_get(blkg->parent); } - ret = percpu_ref_init(&blkg->refcnt, __blkg_release, 0, GFP_KERNEL); + ret = percpu_ref_init(&blkg->refcnt, __blkg_release, 0, GFP_ATOMIC); if (ret) goto err_cancel_ref;