Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp673425pxj; Thu, 3 Jun 2021 16:58:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf6DzwKO8FuIv6sChzGqL4mz0iJ3wMDmZtUYpZ/QFFF2iTQyJiG9nM95OPUSPovEIhYutk X-Received: by 2002:aa7:c9c5:: with SMTP id i5mr1840811edt.160.1622764718280; Thu, 03 Jun 2021 16:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622764718; cv=none; d=google.com; s=arc-20160816; b=YVH8nT5+0S7gx4LlTYQNoCHAEuL+bxAHhLh/bwlNp58jxWWvHSONc5/EeWXwmOY3uF dUB8LANmELaWNxZeXmet5yHvyqLMnZw82m3QKOA9IsiGlLYDs2XzydNWavqi4Cy3zx73 Wg6YSP56ycWjlJJ8ny8g6v0uJw7mkbyi479E4szHJkN4y8UIy5xgbIEzxJt+7NHH8+i7 bqfY9jd+MQaPTimT8Fdx7Y56dp0m+VDeJfA6nE6J1TeJC6UXLMrOITAPctpS3XD6z5+V KfkW+BGAvArDqYip87oaGIvPCEnL1v1W2OJs5TCS/oubnVDlJ5JgBp8Y8FN7ImKf9ik2 aoTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=olSVEqIcIxV/kg3fj718S43P/CqxJJRCjI7PHU+yd7g=; b=tyOwiMVuu2AkhkqDcLGho7yMGC8tS1JO0Nz/LJwQwkQA1wIeO81/zG454Wr7S1RdZJ rbLfANTz2y2wL98rHviAMAmcP00xXLGcqP4EdC4SmnqPZiNeZxSYEQHo469ubSafCd1e CWp1o+GsNvKCZ++jwXePDqVJh/igStIoskoYRPbv5oxnA7bVgbXVuLq+5qtF48OZaS7B CZwi0WT11sPKR8d6PrIGoOOm1b0ltQK7hrwM/c5X8IuBNxYpWKdERA4yiPjXVHFE0fi3 5o49Ksv2BqQl6gHoV7G10BsbsUdXlGWH27IStLGX5VROhWBEe3GbthaF82cop8Eh1r3d 8Epw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QKnIsdjw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=hcpV1U7U; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QKnIsdjw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg8si3764874ejb.592.2021.06.03.16.58.06; Thu, 03 Jun 2021 16:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QKnIsdjw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=hcpV1U7U; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=QKnIsdjw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229751AbhFCX6u (ORCPT + 99 others); Thu, 3 Jun 2021 19:58:50 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:33192 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbhFCX6u (ORCPT ); Thu, 3 Jun 2021 19:58:50 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 160AB1FD30; Thu, 3 Jun 2021 23:57:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622764624; 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=olSVEqIcIxV/kg3fj718S43P/CqxJJRCjI7PHU+yd7g=; b=QKnIsdjwVU8JXJqoxmcI/ls3Zku3G7oqO6RicSsioQJxhzED8ZCX6cgVQBFI/SqOgh0xY/ UB1rKbqXRPd4utwRFULBjAihGXXvq5ZX5QKRPZI13tpCam4nwWMG8SDfA/KNShQnMZ8nMv fUrzFB7BMFPlY6SeKvE5uXOmy4pKxRE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622764624; 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=olSVEqIcIxV/kg3fj718S43P/CqxJJRCjI7PHU+yd7g=; b=hcpV1U7UQ9DYtxR8cltPzpbmYhfC0VErppEga5QQ5c1q/VP9Xi6qjNy85dTeoBeTj/Y1HK B0bHRQCur2G5kyAg== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 755D0118DD; Thu, 3 Jun 2021 23:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1622764624; 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=olSVEqIcIxV/kg3fj718S43P/CqxJJRCjI7PHU+yd7g=; b=QKnIsdjwVU8JXJqoxmcI/ls3Zku3G7oqO6RicSsioQJxhzED8ZCX6cgVQBFI/SqOgh0xY/ UB1rKbqXRPd4utwRFULBjAihGXXvq5ZX5QKRPZI13tpCam4nwWMG8SDfA/KNShQnMZ8nMv fUrzFB7BMFPlY6SeKvE5uXOmy4pKxRE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1622764624; 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=olSVEqIcIxV/kg3fj718S43P/CqxJJRCjI7PHU+yd7g=; b=hcpV1U7UQ9DYtxR8cltPzpbmYhfC0VErppEga5QQ5c1q/VP9Xi6qjNy85dTeoBeTj/Y1HK B0bHRQCur2G5kyAg== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id cox4Ck5suWCgIwAALh3uQQ (envelope-from ); Thu, 03 Jun 2021 23:57:02 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Olga Kornievskaia" Cc: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH v1 0/3] modify xprt state using sysfs In-reply-to: <20210603225907.19981-1-olga.kornievskaia@gmail.com> References: <20210603225907.19981-1-olga.kornievskaia@gmail.com> Date: Fri, 04 Jun 2021 09:56:59 +1000 Message-id: <162276461931.16225.7591153378472996760@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 04 Jun 2021, Olga Kornievskaia wrote: > From: Olga Kornievskaia > > When a transport gets stuck, it is desired to be able to move the tasks > that have been stuck/queued on that transport to another. This is interesting..... A long-standing problem with NFS is that it is tricky to reliably unmount a filesystem if the network is not responding. It is possible, but you need to identify all the processes blocked on the filesystem and SIGKILL them. My most recent exposure to this was when shutdown hung for someone because NetworkManager shutdown the wifi before NFS filesystems were unmounted. This is arguably a config error, but the same problem could happen with a power-outage instead of networkmanage breaking the wifi. It would be nice to be able to forcibly unmount filesystems. e.g. mark the transport as dead in such a way that all requests report EIO (or similar). This is obviously a big hammer, probably bigger than justified for use with "umount -f", but sometimes it is a necessary hammer. Could your work lead to being able to do this? Could I write a shutdown script that runs when there is no more network and no expectation of any network ever again, and which marks all transports as dead - and then wakes up all pending rpc tasks? Thanks, NeilBrown