Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp233232lqc; Thu, 29 Feb 2024 16:10:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWWCDL/DYX8Q1FmCzdY8PsbSx6rMN9T7c/uE+6aI+3fmBTWvbFPl3tRkdKhh7MPBOzWi0eGEBc/a1nYXSEGLDQRPuItttCvO32or0/6xQ== X-Google-Smtp-Source: AGHT+IEa7dMOohNGnFu5NK+doaFjpg3URmWJ6akpyaLImNYK0AmNTG/3as2AcF8BMcMrFk5GtdVX X-Received: by 2002:a50:8d86:0:b0:565:983d:7bbb with SMTP id r6-20020a508d86000000b00565983d7bbbmr125166edh.14.1709251805731; Thu, 29 Feb 2024 16:10:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709251805; cv=pass; d=google.com; s=arc-20160816; b=Cg9Qqoo25jt0KcH24Uot5UebNN9Rsyi5rqnzRK4SkklTvcrAGo85KsY25rS6+A01mY Dbg/8UzEY1kIPPKHpQfO/Efsa8cgm4Yzmrf7na1kMUFgE2BuNsrH/zAk83cY8fO4xn5f dGlOlDW6LfgpdnaiisEK7sCqQKZePiRAxnvOw1364JO3GhaPhcRdWDJEojGeJrbLssSj Gk+rjoZ1XwHQIIEUbZj/Q76MKW8U/fZ/Akb+9R1FK4Q2sI8f+aqSoCrYOEWrHQSVOBcV x2aJIXOYsmUZwHGs18VoiDLbHMXpVH4/TXKsWrCsug7A76ETX+7U2+ddX1bumbKbcLi2 B7JA== 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:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=BKg+ptV39jBDax+gksMpF9mTzQrL2eIQGA/Kx6tZUu4=; fh=oGCWKUgN5rqvEqhxhGaFnCKhx0upqxg87fHnuYmJPFg=; b=FozvB1UcZOEnnPg1FAKgw2vClrtpnZMsnD1zWLQYFTJaNcIvPoJzxdzBAAF88rYYsK qxwR8AjJPP+pr45WkQdycrIALYgPtALA4RDxX8El0dMxORBUAke/SJGDxI5Fp5ezSak1 Csb3mOwonqtSrC0yIvwMImv/vfKwsP/f0rFdq/U5m7RaS8Lac0aWx7q8QvSWsZ1o/aOQ /3vkLpzdqBW1rD6/xKshVm62EnBBlVeVgJhlOpjLdFQSBh+dBTfO+JuYWDVw9drInaeE PRziUS8N1fDfdJQGf/Uq40064Nd2pPvE4FPtvatZS4uwNk+nUQiQeeDpvYvmD6b+j+O5 6uIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m55tEZGL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m55tEZGL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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-2130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x92-20020a50bae5000000b00566b2de5d9esi556553ede.657.2024.02.29.16.10.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 16:10:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2130-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=@suse.de header.s=susede2_rsa header.b=m55tEZGL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m55tEZGL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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-2130-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2130-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6B2C81F22694 for ; Fri, 1 Mar 2024 00:10:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FE76368; Fri, 1 Mar 2024 00:10:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="m55tEZGL"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="fRZICQbF"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="m55tEZGL"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="fRZICQbF" X-Original-To: linux-nfs@vger.kernel.org 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 55C4B365 for ; Fri, 1 Mar 2024 00:10: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=1709251803; cv=none; b=EP5tvfH5l7hv8FTMkeAcysOmVR3y5hkx8EQslqUp+FUPQAmymV0SFTXIKi+YO39svEpU/DIVCBwusCtj8KV4qMMn6XFBqP3xiXAQD0TZACgiECFLfKNU5AAbge96AZqjuSGEm1rGtPw4Y+yb9B/xxRPsJDdb+3xs4g0LLhNnKGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709251803; c=relaxed/simple; bh=zZzJNIkv/YVjrItV9vlh20mlSzUXYLNeyPRMbvTJPE8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cTud8S0KhNRxVfatztoxfWlfp4/rA236HM6HghxZ9OLaOzEv+N5c/VAlOYxc4SlMsmHrTEkfTgD00BconUw7WfTDxHPxTIZSPC1dM+hhfILhvuSBghUD+pmuLRJaUpiQYj6TeKvmj/aauLPAkcWgrzw3i4/S0PYKRqU7Mc8QKbg= 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=m55tEZGL; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=fRZICQbF; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=m55tEZGL; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=fRZICQbF; arc=none smtp.client-ip=195.135.223.131 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-out2.suse.de (Postfix) with ESMTPS id 486B11F80F; Fri, 1 Mar 2024 00:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709251799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=BKg+ptV39jBDax+gksMpF9mTzQrL2eIQGA/Kx6tZUu4=; b=m55tEZGLB6biTVupA7LhdZw0chtmz6QBOMIzTEoIZrr7xTr/uHpapEgeRWBLz5lhG2FcB5 DzQRxQSVrJjJeIiEPevSNykcz1BSbt/z4uYtRLJeaNvtI1pqNhteSPDiANxn9Zm8tUbN0X fTvh66xwbCahohZNXlJhGhvQpNfM9pM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709251799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=BKg+ptV39jBDax+gksMpF9mTzQrL2eIQGA/Kx6tZUu4=; b=fRZICQbF+sxKBtcIHutENPhf23DcaHE1s4+AzXt0DkGo8cXoRQW219QMGFx6ms2YSNeOs3 bH52cR3M1AT6eVAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709251799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=BKg+ptV39jBDax+gksMpF9mTzQrL2eIQGA/Kx6tZUu4=; b=m55tEZGLB6biTVupA7LhdZw0chtmz6QBOMIzTEoIZrr7xTr/uHpapEgeRWBLz5lhG2FcB5 DzQRxQSVrJjJeIiEPevSNykcz1BSbt/z4uYtRLJeaNvtI1pqNhteSPDiANxn9Zm8tUbN0X fTvh66xwbCahohZNXlJhGhvQpNfM9pM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709251799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=BKg+ptV39jBDax+gksMpF9mTzQrL2eIQGA/Kx6tZUu4=; b=fRZICQbF+sxKBtcIHutENPhf23DcaHE1s4+AzXt0DkGo8cXoRQW219QMGFx6ms2YSNeOs3 bH52cR3M1AT6eVAA== 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 0A97113AB0; Fri, 1 Mar 2024 00:09:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id vQQ3K9Qc4WWiJwAAD6G6ig (envelope-from ); Fri, 01 Mar 2024 00:09:56 +0000 From: NeilBrown To: Chuck Lever , Jeff Layton Cc: linux-nfs@vger.kernel.org, Olga Kornievskaia , Dai Ngo , Tom Talpey Subject: [PATCH 0/3] nfsd: fix dadlock in move_to_close_lru() Date: Fri, 1 Mar 2024 11:07:36 +1100 Message-ID: <20240301000950.2306-1-neilb@suse.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Level: X-Spamd-Bar: / Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=m55tEZGL; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=fRZICQbF X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-0.88 / 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)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; RCPT_COUNT_FIVE(0.00)[6]; NEURAL_HAM_LONG(-1.00)[-1.000]; 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)[]; MID_CONTAINS_FROM(1.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.37)[97.10%] X-Spam-Score: -0.88 X-Rspamd-Queue-Id: 486B11F80F X-Spam-Flag: NO This series is intended to replace 98be4be88369 nfsd: drop st_mutex and rp_mutex before calling move_to_close_lru() in nfsd-next. As Jeff Layton oberved recently there is a problem with that patch. This series takes a different approach to the rp_mutex proble, replacing it with an atomic_t which has three states. Details in the patch. Thnaks, NeilBrown [PATCH 1/3] nfsd: move nfsd4_cstate_assign_replay() earlier in open [PATCH 2/3] nfsd: replace rp_mutex to avoid deadlock in [PATCH 3/3] nfsd: drop st_mutex_mutex before calling