Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3070435ybv; Sun, 9 Feb 2020 14:40:42 -0800 (PST) X-Google-Smtp-Source: APXvYqyRbvBezV2BLhp2rSeHQciKkuZC1061xZY9bmcFg2GdjYrImiViz+ZoXeFHVnCMJrlag+vq X-Received: by 2002:a05:6830:2110:: with SMTP id i16mr7856752otc.337.1581288042423; Sun, 09 Feb 2020 14:40:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581288042; cv=none; d=google.com; s=arc-20160816; b=T+5Okr0zNSILZ3ugOtDTlfVH5V/QJHmt2C9A1YxaLmW8mDGZFo2nhlLCvgvYlvMded E3uf2Bk8WCgUqw1CoGElMQcWxGoQP1QHRzOn3xb8zwXLtLF9MfUKUMH2Q5QxCFVSpaoP ljCV/BjiwlvkaEEwdl0SK3dwyS+9oP7x1tcJaxrvjUT2ZnezlvriwtpAzV60ZPXosdas B/wpq8WnnZSO0vBjArtzh1VeUUr6St0emu1TVt6jKIHSGjPRmVPybtkl5U/KWupRdf7g q+gFSHDx6kDWKuVQlU4QnFM7HENe2JgC/UWymYgcOPqrjzLoah87pS6gBOCEZ91Km0pb gDnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oV5aBvmYJySuTUfGJ+OmTE5dACque/jzYZjzoBMaClg=; b=W/VY1HDLmKi003E8gH4HSo7Ps2qWBfmBAyae3I73FiLKRGdQjNUMsmRkdWtWSStqxv IxrYztqhG+FmE+1IFByS2axuhm5dFAZSKlv9ThaDvtGhz+AdHgPyWIJXWgMLNOktdbaQ 23gGOF9aQmGe8SB9GRKhcAic5lXjX600bCurO9HnbtF47oqpZox5YqLD2ccEAbrp+AcX k4e8b+PpXRkev8pGntn6WW0PEUs/EeRWEKg4FIC+IABxnoPAiDe7lFy0QuGpacGJn1uj 7p+3eJ4X3CQLo2DST25gLZucGFCLJHzf1sN5X9WTLhKFSw4FdwHS8qjnjYKtjaoKHs0h xFSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hrQYKNEm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si7173820oii.60.2020.02.09.14.40.31; Sun, 09 Feb 2020 14:40:42 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hrQYKNEm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727659AbgBIWj5 (ORCPT + 99 others); Sun, 9 Feb 2020 17:39:57 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55748 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbgBIWj5 (ORCPT ); Sun, 9 Feb 2020 17:39:57 -0500 Received: by mail-wm1-f68.google.com with SMTP id q9so7820419wmj.5 for ; Sun, 09 Feb 2020 14:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oV5aBvmYJySuTUfGJ+OmTE5dACque/jzYZjzoBMaClg=; b=hrQYKNEmPDa8TRCwvKkjG8XEanpfxMN/Q2nO1o9xIz+izA2+bm309YQW9JxACOuREe Jm0chg0MdwNqGoWY07v36XoB1BzQZFf22VnM1dPi/iYwMBJ0SexEuAxDd55gp6Koh5Lv JYhnSx0QTmXBQpofxPqBmbX8kErh05uTpzkdHxECZ+gNR9qj0ryqXruLAc4CMGVlamhM i9B7cMySGS5Z+ZIWmmIBI2PY4DrFpBlLSaI4sKYb7mhbJDVnaTt/CAn2HaGQZtYKQ39T rhjWT4AaJg8NX+A6JXKF7fQ8AdAZtl60x4EKByGeJLJ8XAHXg4UEPowrYEm8qwMXViMf Y0iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oV5aBvmYJySuTUfGJ+OmTE5dACque/jzYZjzoBMaClg=; b=j+P7EAu8TY1s45oS33McIuBpMn+nRU3XVQkwWSEH4QCGH1SEluZm9t/haxhx1KvUUf 5O3VwGaqX1iXGSWEIfID53AS7774Yft1ajn5bcMti40sUo0IiD0hI8h04JLwZekMUmrg mpgea91tUnMTw3mZbiPP0J69QKVjo7zZy601vWzDzTy4jybUIw/4ku2XVw+SOWB1j2Yv Dvq66ueSLHEY9/zjSLpv8d6Z8gjHb+9wBsS4oSryWfwbaCsSGEs8Y5a9MoPQZKatLQ7z HjKpsFI8IGc4otymhDKDPkQJgPf8i3O2NgCQctU8uv/OuWr5+LyLZjlXuxLBZ7Stnyuw P2hg== X-Gm-Message-State: APjAAAWrdhN3E42yn9AU1e/AB47I+995R0gEvNIUhqpXfBSVDOpHxGbT tR2D4LvPcy3c4hKwdurmsg== X-Received: by 2002:a1c:7406:: with SMTP id p6mr11806361wmc.82.1581287994604; Sun, 09 Feb 2020 14:39:54 -0800 (PST) Received: from ninjahost.lan (host-2-102-13-223.as13285.net. [2.102.13.223]) by smtp.googlemail.com with ESMTPSA id a16sm4251432wrt.30.2020.02.09.14.39.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Feb 2020 14:39:54 -0800 (PST) From: Jules Irenge To: boqun.feng@gmail.com Cc: juri.lelli@redhat.com, peterz@infradead.org, mingo@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org, Jules Irenge Subject: [PATCH 06/11] sched/deadline: Add missing annotation for dl_task_offline_migration() Date: Sun, 9 Feb 2020 22:39:33 +0000 Message-Id: <4cebf47c30ce24ee1972f4b6330376d8f32802b9.1581282103.git.jbi.octave@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: References: <0/11> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sparse reports warning at dl_task_offline_migration() warning: context imbalance in dl_task_offline_migration() - unexpected unlock The root cause is the missing annotation for dl_task_offline_migration() Add the missing __releases(rq->lock) annotation. Signed-off-by: Jules Irenge --- kernel/sched/deadline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 43323f875cb9..68ea3a4933db 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -527,6 +527,7 @@ static inline void deadline_queue_pull_task(struct rq *rq) static struct rq *find_lock_later_rq(struct task_struct *task, struct rq *rq); static struct rq *dl_task_offline_migration(struct rq *rq, struct task_struct *p) + __releases(rq->lock) { struct rq *later_rq = NULL; struct dl_bw *dl_b; -- 2.24.1