Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp563859rdb; Tue, 23 Jan 2024 07:56:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKCN5G7TcmWjKr8PJZqJWZaSP2m5IQ8So2oUKgHI8mQNpsljugYoPqt/wF7kqs//hPgw8h X-Received: by 2002:a17:907:c082:b0:a2c:7293:af58 with SMTP id st2-20020a170907c08200b00a2c7293af58mr51216ejc.79.1706025363849; Tue, 23 Jan 2024 07:56:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706025363; cv=pass; d=google.com; s=arc-20160816; b=TApJznkohBo+rANH3Ue5DruVXBNcfe+eqYfT5WDRsU9nk/Kjb2EG1G1Ul6FlymoPye AAtMfHzbIyNFEm+JDShSWDDvndSjTRp8CMIAJvaRQIXNl/YLU1AWFSqRIRXn7fMJSJ5H //pRj1dbpt95k/ZklF2vq12GjduEulRDn2bn9OH31DGa3wN2C74QnMXxGrIgC/pBx0DH z0Xr0F5Pn2QYiEWbv1wLhZ2j5nU+LAMrJwvZdhjC3MUPylg1UnV++K11/B5yvNZ/yK9M 0HRGruD4/Ft0wGD3cEbLhARzOKnxnXP/20RZKC21mv9wsQxqZD27pYGpeqOEzjPr2L2/ BW3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=d+NQeNngIyoyTSRU3MaVyKuXyuOqU7VW2mx0VZBkBDw=; fh=E+EuQAOsZoJzmCzfUvPIyQizsm/j0dlC2hzrDMvE0yw=; b=Ll8/c/66juZSnwMvGq79Aubd943F4bHAmPdb9RvEw6k4bJZbqhy73K0zjXondzWBFW 8U6lJx8AVFdDV6H+pWjskmPg5nbx/xgLSobzGucyD9oS+WVplVzHSgeDgGXChO6XU5si Jz38xSklxekSDk9wZQc3aaSRg5km3wBWLN7y7Sv/QuJoPWJ8ImdJiLAvX979QmZdKiBa hIpLyvj9AXlqzC+QHrpgMqqgWdS3jVMcvTbZwH2qUV78/An32g5Zr2wcquQfkeEskhZ1 GBJVWu8JU+1lClXAdpAOdAhmC28Lz7BagRK45lA/ol8jrr5UyQrZQ0ofbZiUdOH3nG2D SOow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sK2s7w+E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jt23-20020a170906dfd700b00a2b169d998esi12069401ejc.1010.2024.01.23.07.56.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sK2s7w+E; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 99A631F23F93 for ; Tue, 23 Jan 2024 15:56:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BB3C612DF; Tue, 23 Jan 2024 15:55:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sK2s7w+E" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54F9760DD3; Tue, 23 Jan 2024 15:55:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706025342; cv=none; b=NL1vBYHN/jrh0SycgAyeRHrnUCV7bGTpQIXTagvxJDl/rpcTiOjdPd2H1eZ5/Rk0O7Ln9dDnqwuJxbkBaZo5O2L1WP/jU1qrnGmkOxj5Y+NHnhkXJNbDGWTfO6g7eeGBq/tEPamJHadztQsKMRdttvo9AmnXxt8uljGJrcODugA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706025342; c=relaxed/simple; bh=NFLNtcapmW/YVQ3O4S5u5bbAiQc4MNdaz8if2KZaVwM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LgYNyc7MIk/au7IxqT0iJFJJQgZvEdOsrKVIN4iLIpWFWzYBEC8kN7LWSYcIV3aPpijmaE//k+Hux5KbUNKA9SE+sViZQB1uuRqlvNvxxRg4a0999S1+HWXufMEFHGdikKJD5Arf7QCS+pgQbPMGqDruQKmyi4C4nAzM4kvpy88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sK2s7w+E; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5A7DC433F1; Tue, 23 Jan 2024 15:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706025341; bh=NFLNtcapmW/YVQ3O4S5u5bbAiQc4MNdaz8if2KZaVwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sK2s7w+EVEFCJsL3VumftRDWeQGdrwQUfSDayXZdGOCCTlSCOS4md24HO6CeU/0xa kQWVD2LLuxkgm7wL68DMt5zyxeeC8qsn9Uv0P7jTztJqSQtGI1g0jyquSWkvW987hR jQE8negp8TP6ywxmMdwppo78rMpOQ2CF+Q2maIn6odhrQK+5klr4ICevPGYI+I0elB YjvGnk5CxvcMwejATzDn5aG+ii6BlwfhWw5AqnKjPArzBBs561dSLfzW/cjy8ida+S YOzSgX405HbIagbXVoislBDtM7xW0zfU2NPh4w2B1Lgm9IPuiw7dZm1PShRCYOKr4k H+NrlTwdT6ryA== From: Christian Brauner To: wenyang.linux@foxmail.com Cc: Christian Brauner , Christoph Hellwig , Dylan Yudaken , David Woodhouse , Matthew Wilcox , Eric Biggers , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Jens Axboe , Alexander Viro Subject: Re: [PATCH v3] eventfd: move 'eventfd-count' printing out of spinlock Date: Tue, 23 Jan 2024 16:55:15 +0100 Message-ID: <20240123-rinnsal-entbunden-bfdb1dedb29d@brauner> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1129; i=brauner@kernel.org; h=from:subject:message-id; bh=NFLNtcapmW/YVQ3O4S5u5bbAiQc4MNdaz8if2KZaVwM=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaSuf1i6WPLBb9k7u5ZdzFuqVeK14sjVTzN3BO26ePXcw 9T+O/v/GHWUsjCIcTHIiimyOLSbhMst56nYbJSpATOHlQlkCAMXpwBMJKyekWGHD1eP+IF++bPe D73upeusfbVjTbPNVWfZxb9e7278epGXkeF4xuMLFz3vfLqwXXnZd+8cpsPJsTO+/9x0LdRdbxL rDEEWAA== X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit On Mon, 15 Jan 2024 23:27:00 +0800, wenyang.linux@foxmail.com wrote: > When printing eventfd->count, interrupts will be disabled and a spinlock > will be obtained, competing with eventfd_write(). By moving the > "eventfd-count" print out of the spinlock and merging multiple > seq_printf() into one, it could improve a bit, just like timerfd_show(). > > Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/1] eventfd: move 'eventfd-count' printing out of spinlock https://git.kernel.org/vfs/vfs/c/294a229020f1