Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp52126lqs; Mon, 4 Mar 2024 14:47:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXsikkIOSLbwhgP+0oBc1gQbdPCXDQmfadbJGnZHmM0D/F/nqOXimyJKhckFXNfXsMb1OaHV/X7cM88Z9nm7phYmPDhy7sXyH9Hy/i9gQ== X-Google-Smtp-Source: AGHT+IEiroMxtj4atMdxQbhuvu6yAOxf/ndDfgGUnpV2HSZseG9KF1mUvrKFYhKOoNzNhAq8XcGY X-Received: by 2002:a2e:8882:0:b0:2d2:abf0:1c0d with SMTP id k2-20020a2e8882000000b002d2abf01c0dmr105133lji.47.1709592461479; Mon, 04 Mar 2024 14:47:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709592461; cv=pass; d=google.com; s=arc-20160816; b=JmtASCaANFs7bnsnhOejyZTMo8dfkFkW0+/b9RgDa/xpGUcQCasLoVGJy5ccZPAV/6 AlmnM31XKP/gjI678cFTezlvICfd0hVSDDngGg6wMg1qMweLL1OT4G++du2saBxLAll3 sYOG1VxXMtinSL3zrBWhw9d7APo7H2XbK6110Vmyji9OWkBc7Hx5XAeCcK7LRHr5Izv6 VSsrT3qg9qr9S4ZG7ac95TfAwkfL4LVNXWOQnm5XDzoR8V+z3WP7et/Mcx6LQI+RCvbF NnHfw9oXyzy0dinGmDbCWeczXoV6e9mN98K+j0fT+KUDgAM789jjPO3JoElAUu05kRkC 20mg== 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=chur+EFAgDnlqjxLwr6qwmfyrWqZHtCo9SvTBxUUlKk=; fh=oGCWKUgN5rqvEqhxhGaFnCKhx0upqxg87fHnuYmJPFg=; b=JJKYbjv2yoKJdJezrY7/aK+q+24RFzH9N2XLbZmcGdzXYelIgGl22r9pJZkus7xL0m hPvA2d7c4fJQmKGk8MkgmK3rsHly2LGtwLXMOiMuVRX7V2MnXxTJ0MxKm1ehxnCt6nUM f+KzMPcwgRt/z7q7yZ2NKbKp08JBJkX9dZKnq+JRELTAS68D85B03MHdkO9OBwNpt2P9 Y4GH7gFIzxzvw8kEZme4oZ0nmjpXgo18p/gykN+yXTrhh4ip9k9BQR24T5n/s6vrXaKy 7lmu5/UuEwe5ZC3UuGBeQZwMLXkIixhdVwzWcedSQK5uEnlRz/mlBQ3nDreZcsps8iF/ 3BdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=w1YtvC8x; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=w1YtvC8x; 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-2189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2189-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. [147.75.80.249]) by mx.google.com with ESMTPS id r7-20020a056402234700b0056760abb4d2si932037eda.427.2024.03.04.14.47.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 14:47:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2189-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.de header.s=susede2_rsa header.b=w1YtvC8x; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=w1YtvC8x; 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-2189-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2189-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 7694F1F21D12 for ; Mon, 4 Mar 2024 22:47:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BEDB1C6AB; Mon, 4 Mar 2024 22:47:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="w1YtvC8x"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="jiIMu+re"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="w1YtvC8x"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="jiIMu+re" 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 5FEF23C28 for ; Mon, 4 Mar 2024 22:47:30 +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=1709592451; cv=none; b=hxMKcRWjBCugJnhuujvlVYS/MMsCWQvShSJYql2yBY/k2OwubRm8vWAkFH9fZy0YLRE314d4m4XshcroU7R+ZBBbk7TecHlU0LoaJ2P+2BaH83riF+8AeCjyRhu64eS/2GnQd8okxx4tJ72iENQHnxAC55b5A4zT4lrOFTQqAI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709592451; c=relaxed/simple; bh=chur+EFAgDnlqjxLwr6qwmfyrWqZHtCo9SvTBxUUlKk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qSgEe79TY2X2VcL+f7gDAnwNydtk5bxR4zGFbNTvdaRoFNoMb0S/pe80nEo9B84DatFsc9G5v8wQmrG7DthhNtPAreZk5CvMVNdDieC6u9kNNGjkO+6JXyypckPAMQij516dmC6478i1ia979MwJfr/hO/A2BLZa+GRJohNhs90= 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=w1YtvC8x; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=jiIMu+re; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=w1YtvC8x; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=jiIMu+re; 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 47A3F3501B; Mon, 4 Mar 2024 22:47:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709592448; 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=chur+EFAgDnlqjxLwr6qwmfyrWqZHtCo9SvTBxUUlKk=; b=w1YtvC8x0ADkRHhhQNMwj8JVky4xaTIq9jbmVIgoC4phNgTS9tIJ+G3AQm8H6O93uMEkqp /DQIRNUyiJ82JVxjxC9/H6/YcKwcQ3XGqQUbnJ/4aPFNv4rrsHwJpicDL/2mpCburRKNif 1ATRNT96XqW48EIHeHDoE+rm+wuDDoA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709592448; 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=chur+EFAgDnlqjxLwr6qwmfyrWqZHtCo9SvTBxUUlKk=; b=jiIMu+re+GJ+7DHFQAUA0H4d3BEVvYPNnZW09ph8pkQMHSwGWjhOpqCxCx8HEnzMq49VZR Qz7bBZQP241SVzCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1709592448; 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=chur+EFAgDnlqjxLwr6qwmfyrWqZHtCo9SvTBxUUlKk=; b=w1YtvC8x0ADkRHhhQNMwj8JVky4xaTIq9jbmVIgoC4phNgTS9tIJ+G3AQm8H6O93uMEkqp /DQIRNUyiJ82JVxjxC9/H6/YcKwcQ3XGqQUbnJ/4aPFNv4rrsHwJpicDL/2mpCburRKNif 1ATRNT96XqW48EIHeHDoE+rm+wuDDoA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1709592448; 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=chur+EFAgDnlqjxLwr6qwmfyrWqZHtCo9SvTBxUUlKk=; b=jiIMu+re+GJ+7DHFQAUA0H4d3BEVvYPNnZW09ph8pkQMHSwGWjhOpqCxCx8HEnzMq49VZR Qz7bBZQP241SVzCw== 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 A5AC213A5B; Mon, 4 Mar 2024 22:47:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id jwMTEn1P5mUOYgAAD6G6ig (envelope-from ); Mon, 04 Mar 2024 22:47:25 +0000 From: NeilBrown To: Chuck Lever , Jeff Layton Cc: linux-nfs@vger.kernel.org, Olga Kornievskaia , Dai Ngo , Tom Talpey Subject: [PATCH 0/4 v3] nfsd: fix deadlock in move_to_close_lru() Date: Tue, 5 Mar 2024 09:45:20 +1100 Message-ID: <20240304224714.10370-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 Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=w1YtvC8x; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=jiIMu+re X-Spamd-Result: default: False [1.33 / 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)[]; RCPT_COUNT_FIVE(0.00)[6]; DWL_DNSWL_LOW(-1.00)[suse.de:dkim]; 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:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.36)[97.04%] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Score: 1.33 X-Rspamd-Queue-Id: 47A3F3501B X-Spam-Level: * X-Spam-Flag: NO X-Spamd-Bar: + This is very similar to v2 with: - first two patches swapped - while(1) loop changed to "goto retry" - add a comment to patch 3 - rebase on nfsd-next - rb from Jeff added. NeilBrown [PATCH 1/4] nfsd: move nfsd4_cstate_assign_replay() earlier in open [PATCH 2/4] nfsd: perform all find_openstateowner_str calls in the [PATCH 3/4] nfsd: replace rp_mutex to avoid deadlock in [PATCH 4/4] nfsd: drop st_mutex_mutex before calling