Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4964133yba; Mon, 13 May 2019 03:00:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+Z+hx0OFh2t2FOMRPKJWzc6loFw8wPvqp4wHOOQxkt7BaFT8r6rQ75Igxbfiucqi1S5sM X-Received: by 2002:a17:902:765:: with SMTP id 92mr28793370pli.196.1557741646591; Mon, 13 May 2019 03:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557741646; cv=none; d=google.com; s=arc-20160816; b=aqz8sCDa4MKHKxkX//+BsBs4Fgae7mfe8xvTW3tRXdzYongVL5hU6VJ8PbaeFwpz82 XJ+FVuHdXggUs8GKbRAQteGOMHZpUg1w8Ys1beyES6gb8R9Ss/qfAfuGojLZe6SUoXCx DB4L8EcxJGBD8/DTNSqUPEkixzaUPh7Kx3k6Z+1t0u6VGbjKqtuiINvv6iDdrnRl5RpR p73d2cRBnbH4P+btulHXZfyVXSlzIOQBfW3NV3TZLj+8RN6trYyuKRfLHHw3dKB7omp3 EyyKkqHa2EkcHZalTfvbXTuhIqBi9brrvimG8H2DPsvBR/Ir/5jrszOdMZSJ4rIBCovw koiA== 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=nd873eP5NtHZE8FJeGYW7SRzcE7yGDzRzVz5Bd0i6VE=; b=RHgOBJ2xfe37cH4fUPg2+IQvkdhvW0bddjDuOrFOQ1GBRvJOvsiE9D0VmcO+fwTmvv J0EbEawCIUZeA6yGEgrEQ2Fpju+eh9laIeLtEc3Cst4e3Om/it3bx1BfrAMx5NaWMRvl e+W6iq6IxiXwGLjekt8x0/IEJwTXMKz+6eCNklfW76MvTPUPxEbF24KrnQjJB1p9NB/8 N8jyjdbkTVSvj4/seC5xJqqW3MEHKLbeCVnQahHx2DxOoWHGkQckbRIgc2KXOwgM+M1f dKh0AnuvDE4qXOOaDl+v/AYGtJ7WdIxsDx7yfJWcf7hZFPcCB+93/Tg2kPrQmlICP9EU B51A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L7AJOXWz; 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 d11si16508134pla.371.2019.05.13.03.00.30; Mon, 13 May 2019 03:00:46 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L7AJOXWz; 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 S1728738AbfEMJN7 (ORCPT + 99 others); Mon, 13 May 2019 05:13:59 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34652 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728086AbfEMJN5 (ORCPT ); Mon, 13 May 2019 05:13:57 -0400 Received: by mail-pl1-f194.google.com with SMTP id w7so6179421plz.1 for ; Mon, 13 May 2019 02:13:57 -0700 (PDT) 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=nd873eP5NtHZE8FJeGYW7SRzcE7yGDzRzVz5Bd0i6VE=; b=L7AJOXWznS2bhsSxQ9nJQLeF8CCvkLMQuYAVNhAxBkyE/WaCiRrOZl1/M2dyw9j483 zFdRJdYSjTnGtqC2N/SguMl/uCii5WbiKG38rrz3LNK8zYmNk2C6QIRpGcOd5WE3Cxux BsO9wzBAk/MlpTqF+P+7NgWdXJEOfm3ITqCaunagceD+5NXHlMF/tS3M47AjBOZ1Mmtc hUkRb22ELFSZb5mPFomXvlC9BLyw5FxCpHS0bHUxzDV/LkHmKvoEOrgpTHEQl89SXmAU SYFyLIOOKBHrhx3aHw8OEwA/U51J/fnQPT2+Vi6eOWLxlXMcsdUyGXPLErw7egi5ubuu haHg== 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=nd873eP5NtHZE8FJeGYW7SRzcE7yGDzRzVz5Bd0i6VE=; b=UGCcW6mJvGVrKOdkpy2ETHRn5TuMiNYtccPpA8bRUyRjgK4XdFpUF4E2vQhO0D4itd NEppHG7yfr5urnIOJKgkZhICpZVijh+M6j0mImgaPFPsc/DPSBU20Fwc9qwIJJfoVz+I 6kF4mfy/UpvykjrNF1sqjSGO+4ikT72E7yELCg85MkPxw0QL0AB8Wa1bKsRLhgRG6T5U y6mT6ARvlVB62HKQEyR+w0NtIOVeAx0BdiDJspMG/35XeXo1YRkgaRfISI4Avp+YEYsn wuakaMRo+/WhBIWkcRzQUf5Xn/kI2svNe+sTyZAsU9xH53hdlyycHXVmQXyRZnT/aUvH jurw== X-Gm-Message-State: APjAAAVcgNH838AYYGf102o9QY1J5Zq8BzGWPuZzgQpsNvefo0lFzd9B 7CDIiIoEle1LWO3QDB3Fm3I= X-Received: by 2002:a17:902:765:: with SMTP id 92mr28627007pli.196.1557738837333; Mon, 13 May 2019 02:13:57 -0700 (PDT) Received: from localhost.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id n18sm35500837pfi.48.2019.05.13.02.13.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 02:13:56 -0700 (PDT) From: Yuyang Du To: peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: bvanassche@acm.org, ming.lei@redhat.com, frederic@kernel.org, tglx@linutronix.de, boqun.feng@gmail.com, linux-kernel@vger.kernel.org, Yuyang Du Subject: [PATCH 12/17] locking/lockdep: Remove useless lock type assignment Date: Mon, 13 May 2019 17:11:58 +0800 Message-Id: <20190513091203.7299-13-duyuyang@gmail.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20190513091203.7299-1-duyuyang@gmail.com> References: <20190513091203.7299-1-duyuyang@gmail.com> 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 Next lock to acquire has the lock type set already. There is no need to reassign it when it is recursive read. No functional change. Signed-off-by: Yuyang Du --- kernel/locking/lockdep.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 26690f88..c94c105 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -3128,13 +3128,6 @@ static int validate_chain(struct task_struct *curr, if (!ret) return 0; /* - * Mark recursive read, as we jump over it when - * building dependencies (just like we jump over - * trylock entries): - */ - if (ret == LOCK_TYPE_RECURSIVE) - hlock->read = LOCK_TYPE_RECURSIVE; - /* * Add dependency only if this lock is not the head * of the chain, and if it's not a secondary read-lock: */ -- 1.8.3.1