Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp590539rdb; Wed, 17 Jan 2024 10:59:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGE9lSX/1FgTSm1765nHT5LDwYbc+FHJGY5BjFDTC58P4AXZMxOLQY6xoXd7BV40e9TdTvr X-Received: by 2002:a17:903:2344:b0:1d3:34cb:2324 with SMTP id c4-20020a170903234400b001d334cb2324mr6356961plh.88.1705517970291; Wed, 17 Jan 2024 10:59:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705517970; cv=pass; d=google.com; s=arc-20160816; b=v8VCimL/+SWSJcC00sE0BVnwqVKFZ1SL40J7uPcHMC5wancFrm1Q6iupyllGX9Ug/z jswMioF+j3A7kc2ibpMyk3KM5M+IY/nJDscfoERQ8eNF2D0AzMFOHj+B03DJ5IdyTEL6 oDjV+XF6FhMUhBZEu6qcmI/92mTZyVklGAXko4M9EJSdUPI3TnO3AIUNO63HI/IbsiZi ccg8h1ULtaSb8drv4aOChjbwWRgqHyT1uGbXN2Tqoowdo6ziXuzUYGU7id54FCbchbQu P75w27saW8Th1+w8unlk4EEeObkCO7KzRJAznF/C/kidlgT0TrL0Xme9J1KG7XMhAem7 OJRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:references:in-reply-to:subject:cc:to:from :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=noM15di5cvIK0OqUnGYNFVuIuKXsDIbW7D9yrRXfJBA=; fh=I7jlXQyj5z5a5BbJqIU2n25nzcAWM36DLc7e+V1/RHg=; b=dcsSGvdf7y3S96qXUi3g3LH2QwCkSDIUjWctOO4his1j0GFQp9FNFeEPUMBMvbzOxu D09PSIca3Us29dkdvjgBz69YhrfMxaI9xHuvTGt6UE+OpOmQ41iRUHrs4+c60sr8z3Go x9AE2615Sn/d2ACbCduht0GataSsHoijLkJggsqf6mmDMY26fNmlDezGB4ZU/3DDGHnL YKlsovzCbGZKLlurh6I58e69DdMAkeEV7rOkCe9HZhvuPFH5jUfIRXBvhE62/s0vOI5P 4HWvf6rrbZHjoqFXmX6a2CjvQee2Hg4+TK02+umcEVG8jYxQWwfBwq8kT1sydnaMMS+q PncQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bokyynVi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Hf1fhwne; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bokyynVi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Hf1fhwne; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-nfs+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id kb6-20020a170903338600b001d3e4207386si13907491plb.317.2024.01.17.10.59.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 10:59:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bokyynVi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Hf1fhwne; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bokyynVi; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=Hf1fhwne; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-nfs+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CB79328A51D for ; Wed, 17 Jan 2024 18:59:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FCE72421C; Wed, 17 Jan 2024 18:59:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="bokyynVi"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Hf1fhwne"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="bokyynVi"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Hf1fhwne" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 83FBA24215; Wed, 17 Jan 2024 18:59:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705517964; cv=none; b=LrtjQOe8GZXDE69Fe/TLGgY9ksw0n/huaz+NBFnASGVR7UQPxbsB5xeb+3t7CNymmlXwc7bbl0iVRSLseaebxUCiFGnmTG6A8QBtEXWnT4I80eqfN7CWsAfHBWUwKXZuDrZVAa5cNWXIp+m5NCAp2h3F5ELo5y5FeRqRXJaSNsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705517964; c=relaxed/simple; bh=y5ipUQurDVauXRqc8laDxRO7z7X/T9tYZni+X4r3YoM=; h=Received:DKIM-Signature:DKIM-Signature:DKIM-Signature: DKIM-Signature:Received:Received:Content-Type: Content-Transfer-Encoding:MIME-Version:From:To:Cc:Subject: In-reply-to:References:Date:Message-id:X-Spamd-Result: X-Rspamd-Server:X-Spam-Score:X-Rspamd-Queue-Id:X-Spam-Level: X-Spam-Flag:X-Spamd-Bar; b=Gx947A3NTyqn1HcmucYYtjj0oToF2y6+0cjswzQUuBFXStsGKk9h4FboTm1WPQa2RA4j1JkJxA2Nuoe8odPBFN32UxYae0kGioR1jjQ6Js9ocvbPqNe8e6Nx2d2VAn3PuQazrdfgXIUDjI5/b4EJWhbE6qa76llWTy8Q4FkoIp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=bokyynVi; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Hf1fhwne; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=bokyynVi; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=Hf1fhwne; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de 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-out1.suse.de (Postfix) with ESMTPS id 849632201D; Wed, 17 Jan 2024 18:59:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705517960; 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=noM15di5cvIK0OqUnGYNFVuIuKXsDIbW7D9yrRXfJBA=; b=bokyynViqgWX8EwZm5wi+bXf0WXQPO7hu/kzla1s8MixAeY1EXZAlg/ZVB9bTSXAATCwtk +QgcL9zApBk82BcwqNZEpb17YPvOhf8ZF2h4JEjGEdk/eA/Ma5fOpOrHK/y3V7ZxmCQ8fT ePJgvv+xyJuaKLOyJ1HO5zFmKxp3w6I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705517960; 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=noM15di5cvIK0OqUnGYNFVuIuKXsDIbW7D9yrRXfJBA=; b=Hf1fhwne1mFJ9AqrYL68FzLRplqkLHg7BJlTDQKeP4RNvybhIcstU403RdcOuRzmKZHmZU 8gCjUq7Vg4E/WTAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1705517960; 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=noM15di5cvIK0OqUnGYNFVuIuKXsDIbW7D9yrRXfJBA=; b=bokyynViqgWX8EwZm5wi+bXf0WXQPO7hu/kzla1s8MixAeY1EXZAlg/ZVB9bTSXAATCwtk +QgcL9zApBk82BcwqNZEpb17YPvOhf8ZF2h4JEjGEdk/eA/Ma5fOpOrHK/y3V7ZxmCQ8fT ePJgvv+xyJuaKLOyJ1HO5zFmKxp3w6I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1705517960; 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=noM15di5cvIK0OqUnGYNFVuIuKXsDIbW7D9yrRXfJBA=; b=Hf1fhwne1mFJ9AqrYL68FzLRplqkLHg7BJlTDQKeP4RNvybhIcstU403RdcOuRzmKZHmZU 8gCjUq7Vg4E/WTAA== 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 2A4A013800; Wed, 17 Jan 2024 18:59:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id QSC0NHojqGUyWwAAD6G6ig (envelope-from ); Wed, 17 Jan 2024 18:59:06 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever" Cc: "Jeff Layton" , "Christian Brauner" , "Alexander Viro" , "Eric Van Hensbergen" , "Latchesar Ionkov" , "Dominique Martinet" , "Christian Schoenebeck" , "David Howells" , "Marc Dionne" , "Xiubo Li" , "Ilya Dryomov" , "Alexander Aring" , "David Teigland" , "Miklos Szeredi" , "Andreas Gruenbacher" , "Trond Myklebust" , "Anna Schumaker" , "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" , "Jan Kara" , "Mark Fasheh" , "Joel Becker" , "Joseph Qi" , "Steve French" , "Paulo Alcantara" , "Ronnie Sahlberg" , "Shyam Prasad N" , "Namjae Jeon" , "Sergey Senozhatsky" , "Steven Rostedt" , "Masami Hiramatsu" , "Mathieu Desnoyers" , linux-kernel@vger.kernel.org, v9fs@lists.linux.dev, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, gfs2@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, ocfs2-devel@lists.linux.dev, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH 00/20] filelock: split struct file_lock into file_lock and file_lease structs In-reply-to: References: <20240116-flsplit-v1-0-c9d0f4370a5d@kernel.org>, Date: Thu, 18 Jan 2024 05:59:04 +1100 Message-id: <170551794427.23031.1969485804246583443@noble.neil.brown.name> Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=bokyynVi; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=Hf1fhwne X-Spamd-Result: default: False [-0.31 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de: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)[]; MIME_GOOD(-0.10)[text/plain]; R_RATELIMIT(0.00)[from(RLewrxuus8mos16izbn),to_ip_from(RLouahofup1mwqksbidco3ksry)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[45]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[kernel.org,zeniv.linux.org.uk,ionkov.net,codewreck.org,crudebyte.com,redhat.com,auristor.com,gmail.com,szeredi.hu,hammerspace.com,netapp.com,oracle.com,talpey.com,suse.cz,fasheh.com,evilplan.org,linux.alibaba.com,samba.org,manguebit.com,microsoft.com,chromium.org,goodmis.org,efficios.com,vger.kernel.org,lists.linux.dev,lists.infradead.org,lists.samba.org]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[16.90%] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Score: -0.31 X-Rspamd-Queue-Id: 849632201D X-Spam-Level: X-Spam-Flag: NO X-Spamd-Bar: / On Thu, 18 Jan 2024, Chuck Lever wrote: > On Tue, Jan 16, 2024 at 02:45:56PM -0500, Jeff Layton wrote: > > Long ago, file locks used to hang off of a singly-linked list in struct > > inode. Because of this, when leases were added, they were added to the > > same list and so they had to be tracked using the same sort of > > structure. > > > > Several years ago, we added struct file_lock_context, which allowed us > > to use separate lists to track different types of file locks. Given > > that, leases no longer need to be tracked using struct file_lock. > > > > That said, a lot of the underlying infrastructure _is_ the same between > > file leases and locks, so we can't completely separate everything. > > Naive question: locks and leases are similar. Why do they need to be > split apart? The cover letter doesn't address that, and I'm new > enough at this that I don't have that context. For me, the big win was in the last patch where we got separate lock_manager_operations and lease_manager_operations. There is zero overlap between the two. This highlights that one one level these are different things with different behaviours. NeilBrown