Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1474137pxj; Fri, 18 Jun 2021 07:56:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvRU+cnShUj2+oZexS+0/bmbZQuKf7rh/dIgkxxZAHOUT5+J007McNR9eoyL73mXIH4RTp X-Received: by 2002:a92:c7cf:: with SMTP id g15mr7782639ilk.28.1624028213331; Fri, 18 Jun 2021 07:56:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624028213; cv=none; d=google.com; s=arc-20160816; b=e9pPZCoEs5fBl8Ih2MtknWTeVOHllvEA9wdzCfFQW8uNTZOSV+k1NHLEFBPMz/kSNo cs38t/w4p+1NsirgDB/p0w5Pq5rxu1eqgJTPWrNRf+3tgkbRsGgC/e266HuV0e0zbEzT urVsuuGl9og5TBamMrQIcYdWLOQ6W0MZBFSf/UVsgSXRJ8zpe79DdKjDDw+LkgkZPzpI gpqa8tmKf/xpLnxCGoBAbqul847cKnQ8GmRP/PF202vErYiOdkfC6W/o9C36AnfGzouM cH2M3Ckau4CCrLF5XwtiuH922mvF++LS5wGnVcApeO+De2Gcnzsb4QTHfHKfpgAFmgJD XX5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ij8tlaut9s05rN09YP89e/qZ1FIC8Gnd8swZTHoz/Oo=; b=VG2OVq1Ee6I88ep2MocF5kQolIeTNzgUcislQZg/htc5Iy7N5CHbDq46arNp6wZkF6 mqJDjET9e90HTLWN10+0rFien3b2HvtC6xbKlLeX7A06Aj33sHoR1xPwv1mpS+PNiXT2 cCl5X3hm4xucVk8bbYDdLaCzvaBXm0fs2PTAlA2Dwl1XCQH7Q7qY6WBBfA7eBOh9NP+H JyuMy7YGGhM67s49MR6BIzC+HV4pvwBSKSaUO8xumk8V2qEWeK0Ja6hYaupKBFPcZfN+ yUbwPUL2Lw3MPLNZchIgG3XzZctNesxYZD+P3ipSd+uVKH107BR1H6fFprSbeyUTv7/w 45hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b="bab//e/f"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si2881243ilu.145.2021.06.18.07.56.39; Fri, 18 Jun 2021 07:56:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b="bab//e/f"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234783AbhFRO6G (ORCPT + 99 others); Fri, 18 Jun 2021 10:58:06 -0400 Received: from pv50p00im-ztdg10021101.me.com ([17.58.6.44]:53438 "EHLO pv50p00im-ztdg10021101.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234712AbhFRO6G (ORCPT ); Fri, 18 Jun 2021 10:58:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1624028156; bh=Ij8tlaut9s05rN09YP89e/qZ1FIC8Gnd8swZTHoz/Oo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=bab//e/f3y/EuyyFAtpgFwHub4SUYa+zFgXa3Q7XFZbtAGkoMmu1nrIvlbRaLlEsl IKRjXvYuAONmb4c3rFA+zjFaxr58QvRoIpC84hkgBR6HdKlOKY61LXfIJ93ldPYyIt 4ExtFz2pvIzSb1qSnLpzqkNVpyoAC85/UrV7WYhtpCrIqQdxLzkMYFDOb4oB9iWajp DEewb/cqzJ0dKPvu1i0+wH8N29cF8OYVJnQdO9P1oAaZVA26OQhkmEJfgonaEmMe17 /mPFCjS9xQ8K9MK0GbtlffhY2hJTaBgvYepP5wThleKoGauXoyxfG+9s7XCkujDFtA GFZmzlcA/0PDg== Received: from xiongwei.. (unknown [120.245.2.120]) by pv50p00im-ztdg10021101.me.com (Postfix) with ESMTPSA id 655BB18038B; Fri, 18 Jun 2021 14:55:53 +0000 (UTC) From: Xiongwei Song To: peterz@infradead.org, mingo@redhat.com, will@kernel.org, longman@redhat.com, boqun.feng@gmail.com Cc: linux-kernel@vger.kernel.org, Xiongwei Song Subject: [PATCH v2 0/3] some improvements for lockdep Date: Fri, 18 Jun 2021 22:55:31 +0800 Message-Id: <20210618145534.438816-1-sxwjean@me.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-06-18_07:2021-06-18,2021-06-18 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=304 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2106180088 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiongwei Song Unlikely the checks of return values of graph walk will improve the performance to some degree, patch 1 and patch 2 are for this. The patch 3 will print a warning after counting lock deps when hitting bfs errors. v2: * For patch 3, avoid to call lockdep_unlock() twice after counting deps. Please see https://lkml.org/lkml/2021/6/17/741. Xiongwei Song (3): locking/lockdep: Unlikely bfs_error() inside locking/lockdep: Unlikely conditons about BFS_RMATCH locking/lockdep: Print possible warning after counting deps kernel/locking/lockdep.c | 55 +++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 29 deletions(-) -- 2.30.2