Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2223091lqo; Sun, 19 May 2024 20:53:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+h6+vxXG4zGoxXG5LWBsuyuoRztsxl/EOGjLfY1GJMw+HIv5Iwvixx/Dg/wENKvklmc27tL45+IyuVUCP8M7h8P3owFZbjPkMWWAtAA== X-Google-Smtp-Source: AGHT+IGhuqhvhUY+fS/RkHKBgf2RU4kZ8BdM56DvuFKjtd8P2VNKuEvdHzH1xZZmPxFCh3UGGKwd X-Received: by 2002:a05:6830:1202:b0:6f0:e575:1b14 with SMTP id 46e09a7af769-6f0e92b29a3mr29467458a34.28.1716177223606; Sun, 19 May 2024 20:53:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716177223; cv=pass; d=google.com; s=arc-20160816; b=JSrRCZmknULauAfxISeWCwyiJX2FCRtpOO8L5L7wG00xUJKI96+uzkETZLUKpyvlff GIV2jetm9JTdYAupCM2MbgK9a9saGlnEW/SGRWWunJdcvi6vOl47WOfVb/A6/u7SfG0E z7rEkRPNVs80POKiKBqlOYMRjSMSNX+hR0LHCP0fQRd8VAdNj1bH6ceCKnjtaSa7kvSY uRSW8E3WdRSE/lsQrRzcvmFJJMCpvIWKqfMbvc/qFgPShn7BUHhZbsE67gvcugv44vkk bKWJ+ERpaPp8sBck5+9bTKSGBaVUgSfSzNRg63V5uwvNdb8vcX0P/5mu8NwKgTIjn5oo Hiig== 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:to:from:mime-version :list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=YyROcX46237N+5/obp3dYYop2lGhT5zov81nelPO3M0=; fh=Mys3y4MwsHRytUQMpdfGBn3oGRYLcLloxNwkFYMYMmg=; b=1C/KyU7Q1JLd2fdUaUgjPe1td2dybMW2PJXY9YpMrBQWhHi2sqiy1TV6HyssEbC2Pc 2mQsUdyzuSXem56KLnFQq8fho/6zJPLKcZoy6cLVsuhCh28PCAqwErra1duPO2+SpsTR dFwa4Vvo71zy1PnfPh1bkTT5uINyMXnW9rZ3YAQZap5yAkcYHK7DbP+YNpLm/rnmW6jW D7mGuI+wRBecnxrh1G7O2PlImCNBljz9YzxkXXCMRUY2CDgmYLWUnPneTaJ0Q40kY/4Q ND/Y2q/dxV3q0nFB84YPQMLWXrX9EgDC5rmi1w8n2AUK4J/T2e3zPzKW18kQVROJJT6N 3+IA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="z/Bn3fMa"; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="z/Bn3fMa"; dkim=neutral (no key) header.i=@suse.de; 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-3288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-66d8bb587a5si657701a12.417.2024.05.19.20.53.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 20:53:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="z/Bn3fMa"; dkim=neutral (no key) header.i=@suse.de; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="z/Bn3fMa"; dkim=neutral (no key) header.i=@suse.de; 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-3288-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3288-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1F842B22091 for ; Mon, 20 May 2024 03:53:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40019168B7; Mon, 20 May 2024 03:52:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="z/Bn3fMa"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="epi1zt9j"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="z/Bn3fMa"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="epi1zt9j" 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 724FD1643D for ; Mon, 20 May 2024 03:52:49 +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=1716177171; cv=none; b=DfTsUQ/SMBdJ6FS5SXfiLhWIPDYCLgiBi4wyf/vCxRezts5kQrCydVWx4szwqTnLZ6Gmrl1CIoI3F4AA8Slzj/jXNqajmitamn90+YKP3NpcrcBaFUSVd9KnfGipVfN99TUwg//0vvG3OGtj2uVRBvC6eGFf3BkQNBhtUPtsP7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716177171; c=relaxed/simple; bh=512lwFYZj/dkJy6zmEpeaPmu++9KiYDVJ0J5jWXPxfg=; h=Content-Type:MIME-Version:From:To:Subject:In-reply-to:References: Date:Message-id; b=leZ8xOfeB+VJZputFNziIwkfL1wyFqbYBTe4fStEnFoZaVfGIlLiDmgDhCWwDHyHRM0hTqFC2nP4DhYjLTIWbp+KPWX3Sa4L1s5JUA5ALJTNehhufWy9HIei+A1nnjOc31fGxywNU1ucB3trv71B4yICMn18nF7OQEGQn4zQlTc= 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=z/Bn3fMa; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=epi1zt9j; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=z/Bn3fMa; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=epi1zt9j; 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 6FEA833E16 for ; Mon, 20 May 2024 03:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716177167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YyROcX46237N+5/obp3dYYop2lGhT5zov81nelPO3M0=; b=z/Bn3fMaQ9nVvdxhMHWOyU/+ygS7XVp0PdO5+R19raXcIFqm4HcofxG6g2+l3M5Cwqnh3j 9JtqeP3Qb+Uus4sHWV+aZUe/HAsqFopilihWgnx5vfJ5XS9iJfB7ilsBnTmufPS9+q/AA7 S1kjqv8bZP2OEjsi2uuV1j0W8Keuxj0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716177167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YyROcX46237N+5/obp3dYYop2lGhT5zov81nelPO3M0=; b=epi1zt9jwPTWO/j40OqxUtB0qgTPMmE+SCRzMIISS4xuRdJR90vUfxr0+VlxSpsZl18tI9 6L9GTAEUBlfc/JDQ== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b="z/Bn3fMa"; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=epi1zt9j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716177167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YyROcX46237N+5/obp3dYYop2lGhT5zov81nelPO3M0=; b=z/Bn3fMaQ9nVvdxhMHWOyU/+ygS7XVp0PdO5+R19raXcIFqm4HcofxG6g2+l3M5Cwqnh3j 9JtqeP3Qb+Uus4sHWV+aZUe/HAsqFopilihWgnx5vfJ5XS9iJfB7ilsBnTmufPS9+q/AA7 S1kjqv8bZP2OEjsi2uuV1j0W8Keuxj0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716177167; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YyROcX46237N+5/obp3dYYop2lGhT5zov81nelPO3M0=; b=epi1zt9jwPTWO/j40OqxUtB0qgTPMmE+SCRzMIISS4xuRdJR90vUfxr0+VlxSpsZl18tI9 6L9GTAEUBlfc/JDQ== 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 A5E881378C for ; Mon, 20 May 2024 03:52:46 +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 dVFGEg7JSmZcegAAD6G6ig (envelope-from ) for ; Mon, 20 May 2024 03:52:46 +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: linux-nfs@vger.kernel.org Subject: Re: When are layouts destroyed on server reboot In-reply-to: <171617508551.18863.10945867499281791407@noble.neil.brown.name> References: <171617508551.18863.10945867499281791407@noble.neil.brown.name> Date: Mon, 20 May 2024 13:52:42 +1000 Message-id: <171617716265.18863.8448767801936248728@noble.neil.brown.name> X-Spam-Level: X-Spamd-Result: default: False [-6.17 / 50.00]; BAYES_HAM(-2.66)[98.49%]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from,2a07:de40:b281:106:10:150:64:167:received]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.de:dkim]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[linux-nfs@vger.kernel.org]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 6FEA833E16 X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Spam-Score: -6.17 On Mon, 20 May 2024, NeilBrown wrote: > > Hi, > I have a customer who is experiencing a problem on an older kernel. > After a server restart (actually a cluster fail-over) the client > recovers all opens and locks correctly, but then sends a (previously > queued) WRITE request with a filehandle/stateid for a LAYOUT that was > provided by the server before the restart. Unsurprisingly this doesn't > work. > > I've been hunting through the code to find out where the code attempts > to invalidate all layouts as required by 12.7.4 in RFC-5661. But I > cannot find it. > > I'm guessing that adding a call to pnfs_destroy_layout() in > __nfs4_reclaim_open_state() would do the trick but maybe there is a > better way that is already implemented in later kernels, that I cannot > find. > > Any pointers? I think I found it. nfs4_establish_lease() calls pnfs_destroy_layouts(). And that is present in the old kernel that isn't working... both. Must be something else. Sorry for the noise. NeilBrown