Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2295417rdb; Mon, 5 Feb 2024 01:54:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IF43qaE++qs15wceJzc9Cr9FaGu0IaFdpcBRpSTyFsE9glQBMs4NAnEuYa7G8jqmywPMLC9 X-Received: by 2002:a05:6512:3ab:b0:511:3058:735c with SMTP id v11-20020a05651203ab00b005113058735cmr7223133lfp.23.1707126887516; Mon, 05 Feb 2024 01:54:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707126887; cv=pass; d=google.com; s=arc-20160816; b=Xp10Lv04bWcxpfZBDyglazY80WdX90LRmzQaEEYo6/SxShAbivpv/wfL1UJXzXnej0 TDbEImd56+FBiy5V2o57P7nWHqXlGDTtz1joNMqAihW9W/Y43dCnmDoP2+iDG8o/1NbJ ld99ditFXV3NWDKwxXROxy/vJbQ/nbdxRa3QSPZnAF1aE5wHZ4UyECqgaWnTmCtLd/fs /iM6V7HfY4DMahueTnBJ+6AI/cmMVRtfQCLI8gUmXEG75ksNxF7b+nua6bfeyEfzmoP1 W36iluNFg9iSXngNC4wQjPuMUUMRESNNqS312R/+MwRxnq6kCIuzOK08SQQy7sb+ukog v15g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=y3nxdMBK1Iowwo0h4C04mpiVNd7FN4kqlRYxqdrDtPA=; fh=S5JkpxEC6cwpwKOlcJ8fGHtSUSLMzG7oerDDxOP694M=; b=lNZ3prGGolFFc3Fv+BNIKL4F9IJ4R5ChWFZMnpzGMrQfOAlSGsTY+qKNFiXlvIZYIu a+nI982rDX2Z9BOTwxWgliYYXwTUjFSsgICluiZmFmKngmoNEOeJk+EKqVGD5dvNOThU +g3kRoK39ya8D3EBt0SrR/rkHI5nPs8EXgectSChWVpfNWY19z4cPdZUctXjdJI6Qoa4 pkfLH6mmWzwVnpnHMp1bjdGYtF5kPjb/FjRlaOWDdj5I1SJ+DnH9ugxUnrPRZ8qm3fXy LPxJaCHUiDsoZum8xpi0nM1MGYRo9+VZ8+egCsfhL7E+emI5Rnhss1QjQc+KocrpK9ig sbxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ZShL6v96; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=rf6TkAwO; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-52355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52355-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCX5fBzjbqnq+erlkiY6GpwqDntnERSREgRjUpTn9lkF7wTzdVsmQdQJaWVbFgH2Y+VhDfxyDKiXf+8k/EfLYMGSwPE8dMQao2DV+nnFZQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o24-20020a17090611d800b00a3612401eb6si3886803eja.880.2024.02.05.01.54.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 01:54:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ZShL6v96; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=rf6TkAwO; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-52355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52355-linux.lists.archive=gmail.com@vger.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 196361F220A3 for ; Mon, 5 Feb 2024 09:54:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 442FB13AFB; Mon, 5 Feb 2024 09:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="ZShL6v96"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="VuDDe6eC"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="rf6TkAwO"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="1Q91ZPoQ" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22744134B5; Mon, 5 Feb 2024 09:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707126844; cv=none; b=pis5/XqEZ56+Q6OF7S+z/Tr3Xre/aNII2bXZa7+MUhTyWVPBdB56AWfzFgVaX0NSslvP3BMV/gJd7Kb/cmHsHuzBf7ABHx2BP8d6df4aQ5WlQfsNm+xKPUoDNt8k1FnsV+5Z3bTCuTNR6FpDe2N/k5HfIB0RCSWrs7+bPlw+YUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707126844; c=relaxed/simple; bh=lBT2FCDxIEra83yAYCWariNM8bR1mmYwJ0ppEJawBHI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nPtzutEgU4WsbWkzxBiPZjkUo4JH0tKrpjSZ4pKK7gQZN2Fm41zS6iWLzwj9F953RtZooGp0HHfIXjYixsJTksQxGj5JxTufLfkxNGxu17fDymesTBXHNN6GxffucDuG9SRTpyIB5I76lhx1GY5Rg6AZ0mbrY0oaSJznJV+WXKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=ZShL6v96; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=VuDDe6eC; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=rf6TkAwO; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=1Q91ZPoQ; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E163E1F8A6; Mon, 5 Feb 2024 09:53:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707126839; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y3nxdMBK1Iowwo0h4C04mpiVNd7FN4kqlRYxqdrDtPA=; b=ZShL6v96XnRFGm/vzWacwRDuV+mv0TglyE4iFcSrbkl+V4ZB1AjTgYVLITqyZ8tgeJnX4b ED4oB0y6ZU03DRfeRUh21G1gHcsYXoqhOgKk3BVVTPgpAWeC54Mhe3ojajE5SrTx6z750t fkce5xsQ4vswaH/jghxrUEpqV/6A9Yc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707126839; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y3nxdMBK1Iowwo0h4C04mpiVNd7FN4kqlRYxqdrDtPA=; b=VuDDe6eC/SvJaAjbX319Y+sx8jWP91wuNQ4dw9KhhuiM5arBX/a8zum5/fJcmd/qFnFBq7 rcFC6YRuFLpygcAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707126838; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y3nxdMBK1Iowwo0h4C04mpiVNd7FN4kqlRYxqdrDtPA=; b=rf6TkAwONT3achDdsh5M3oXpHMAgbvIv+TRbWsL3id58XPn2H72czkjoVJyPhhAfpFV/FU bYnDJaNOqUQk2SyCQFYF6ykA/2YckgY8FpLdJ7B9VMDzkXAd72kpEYFPdjJbo/T2tefQDa om4lUT1xFuNguvahHUzyw8nabgQ2cmI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707126838; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y3nxdMBK1Iowwo0h4C04mpiVNd7FN4kqlRYxqdrDtPA=; b=1Q91ZPoQS5YSuAeWMNqVlX9AjMO/Hpv5d7WBWwwXmjDW4YaXpYHENpf81TTyNZyLuEKO5i MCygOVBeP108ZnCg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id D632F136F5; Mon, 5 Feb 2024 09:53:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id TulINDawwGWbJQAAD6G6ig (envelope-from ); Mon, 05 Feb 2024 09:53:58 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 8799AA0809; Mon, 5 Feb 2024 10:53:58 +0100 (CET) Date: Mon, 5 Feb 2024 10:53:58 +0100 From: Jan Kara To: Sedat Dilek Cc: Jan Kara , Kent Overstreet , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, peterz@infradead.org, boqun.feng@gmail.com, Alexander Viro , Christian Brauner Subject: Re: [PATCH 1/4] fs/pipe: Convert to lockdep_cmp_fn Message-ID: <20240205095358.p322zf5u74fgczlo@quack3> References: <20240127020833.487907-1-kent.overstreet@linux.dev> <20240127020833.487907-2-kent.overstreet@linux.dev> <20240202120357.tfjdri5rfd2onajl@quack3> 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 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=rf6TkAwO; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=1Q91ZPoQ X-Spamd-Result: default: False [1.69 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BAYES_HAM(-0.00)[36.19%]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[10]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim,suse.cz:email,suse.com:email]; FREEMAIL_TO(0.00)[gmail.com]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_CC(0.00)[suse.cz,linux.dev,vger.kernel.org,infradead.org,gmail.com,zeniv.linux.org.uk,kernel.org]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Score: 1.69 X-Rspamd-Queue-Id: E163E1F8A6 X-Spam-Level: * X-Spam-Flag: NO X-Spamd-Bar: + On Fri 02-02-24 13:25:20, Sedat Dilek wrote: > On Fri, Feb 2, 2024 at 1:12 PM Jan Kara wrote: > > > > On Fri 26-01-24 21:08:28, Kent Overstreet wrote: > > > *_lock_nested() is fundamentally broken; lockdep needs to check lock > > > ordering, but we cannot device a total ordering on an unbounded number > > > of elements with only a few subclasses. > > > > > > the replacement is to define lock ordering with a proper comparison > > > function. > > > > > > fs/pipe.c was already doing everything correctly otherwise, nothing > > > much changes here. > > > > > > Cc: Alexander Viro > > > Cc: Christian Brauner > > > Cc: Jan Kara > > > Signed-off-by: Kent Overstreet > > > > I had to digest for a while what this new lockdep lock ordering feature is > > about. I have one pending question - what is the motivation of this > > conversion of pipe code? AFAIU we don't have any problems with lockdep > > annotations on pipe->mutex because there are always only two subclasses? > > > > Honza > > Hi, > > "Numbers talk - Bullshit walks." (Linus Torvalds) > > In things of pipes - I normally benchmark like this (example): > > root# cat /dev/sdc | pipebench > /dev/null > > Do you have numbers for your patch-series? Sedat AFAIU this patch is not about performance at all but rather about lockdep instrumentation... But maybe I'm missing your point? Honza -- Jan Kara SUSE Labs, CR