Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp19923lqa; Fri, 26 Apr 2024 12:55:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKPRTMUUc084pSVaswUeEpPoqEGJ8BQ1pxDJEg/nW6M2ytwYDQySE28NaUVNBuprk9EL4EVEZS/rybPc5RPF4BtWHvHhDs8wJtpVzMiQ== X-Google-Smtp-Source: AGHT+IHIWkn+2Tzy3B5MZCnC+Yz8Po653aGqaPnBv88gkjC6NeJg3hVCG3bKqM47oWFpNkq9Q9NF X-Received: by 2002:a17:906:2854:b0:a58:9a74:5e6d with SMTP id s20-20020a170906285400b00a589a745e6dmr348869ejc.11.1714161351564; Fri, 26 Apr 2024 12:55:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714161351; cv=pass; d=google.com; s=arc-20160816; b=lFkGKMCQcmgXPCNlyCwyxJujLNqRXmQDC000WKNYL7jo1mNxcij50F6bDcpv3z0u09 nPfSkgAjJGweyreQnix9+d6QkK40MZPEYSMrppT67oSH72xjhfJqT8raIlGmYK0OPxFU 4ZrWIE8xM/YKO/HsXSTwp0CtCbAW6jyLeb5I4NFSh/u8wICd7ArNO4fko3c9Y72x9zPs xvMwxcCBTsehJgUbQYrJF2xqy23mUeun5WIWSDdsGKvpt+KQNzkuwjdn7FgqXYexr+yi bY+zJB3dqXxUgrDMBHeKOMUnFWrJ5i4G56DD5goV7Ngit0O1O9tlMFvoz3Nsx4yhKZGM BBUg== 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; bh=V3u1azg8RiBR7RNxMnu2p6fl2vMhqNcvKFIRuvtoG54=; fh=wWFteQUsAJ5rnIPc9GUHB7GKcPAl4X1cf69yUqmiOcI=; b=xLBt7acO1BARhxac6kazPglYlkJWNXP+Au8r4XzfGegOtsvYRowmJGvXODnAukDgLV wl4rdJNmaZx53ar8ILjsu0muOeYWCBUq3hGaFI/MUTnqZORNhu9/utMpThDLyasx/o5I FNqgZSQsM+WOae0LxPXRUTJu2lQAo2uacc+HsZ3sUavkEkxm8VF0/ERLCIfxCftwZxbL Ogzb+CntK1RS3op4y4nwKTacGSEHEjaPtOPLrJwUhjgBMKyi/zQX1ppmKyP7CJ6Won1n TvNsWw9ZDK+D48kEQyaK/yfcX6FajG0Ik2sXJD3fvn1JzfClp4ELLJmSd9pH5YzdISC6 LUgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JfLqtMOA; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-160645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id sa19-20020a1709076d1300b00a5885f05410si4977996ejc.567.2024.04.26.12.55.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 12:55:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160645-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=@redhat.com header.s=mimecast20190719 header.b=JfLqtMOA; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-160645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 4F75F1F23FC2 for ; Fri, 26 Apr 2024 19:55:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DB2E2137E; Fri, 26 Apr 2024 19:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JfLqtMOA" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19C15208AF for ; Fri, 26 Apr 2024 19:55:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714161345; cv=none; b=rPw51Kj9MMsptS7b7ehjURl6oSpajxiL/RnGHVsgyyQdCmwoOcOpKz/2VxtHVWhLuFwDfihrzM6+NfK+V3C5oHZ+KXJORGrHvTFcy5KLne5y8230lvJxoD/IET3ZaY4TDdVaXgWTIx038Po0tQwuc9V2+fytlTSaFmfP7Bb+cCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714161345; c=relaxed/simple; bh=Bh5o0QdcQIobo/H4Wrn5STRyPNZ8pLWIRgzThTjZWXU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HRbGHjYtBsihj0WNVR44H5VQTw8o+XCNzTx5+Ra37WoN529/30/m9NiE0x4lS1R6GS5M8xUF5VDStBEY9jcrZk2xM88BgO75ut7XJAPTxi8vDKwiu2z/Q8c8rksBcmLVyvz4rV7rTU2VeCfIt/NrdTr7VEeup/vgEyyGODGezSE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JfLqtMOA; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714161343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=V3u1azg8RiBR7RNxMnu2p6fl2vMhqNcvKFIRuvtoG54=; b=JfLqtMOAIqb4p5uf6q5I1L/9RtCAL+vmYNuTrIJW2++LK0pKGR+5jNQgMTiQzx7hDzciu8 N+K70A26kUfZBjaUEQoEkSeohmF+JsnStvugnoh6W0e1y3s1yOHU4sFZkflBqrXKqExBH/ 2qYn5M26Sl+CQVks23d6D6oZWBQbobA= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-v-vXEfxuOXKYa7bH9xatIA-1; Fri, 26 Apr 2024 15:55:41 -0400 X-MC-Unique: v-vXEfxuOXKYa7bH9xatIA-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-6a0b09ab450so15772506d6.1 for ; Fri, 26 Apr 2024 12:55:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714161341; x=1714766141; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V3u1azg8RiBR7RNxMnu2p6fl2vMhqNcvKFIRuvtoG54=; b=ostiwqGbTLeayB9o0HaJgT/ZD16DciaKPKWsIqcR4ucFwcKmZsbutWXX4969/R7zgm fTFD2YW5dm0XFZCNjd2S9KONXDyu/6zwtxo0MElcrelAIyEBm50wGMnNrdPx6fdxZGWv hnFRFzn7iG5fIT+lOEHhL0IV3111JG7V3Zqntn4itC8G+nEZ6CScFTgECa8pF4tyEiP0 eaHzlwIJtrsL6BVOrXPQ/0dBhBGQ9yAgIXb8Um1v+zKmGqYl1Mp03EN4oXKJZXBJB7JE bDulJHJa4qNHDc0ZCokUgJsObxQf/4To12kweZROIXd6qquPUlUsBKFv4iZUoC4d9Y3O FGfg== X-Forwarded-Encrypted: i=1; AJvYcCUKUrofwPfXpIyo7Xb2jjsquvYSH2Qinku712Z79PoqOPBan9zpz8mLWDLfp2sickEsl2sI9Ihucpdb99REp+avEN2j2iAnaV6wYIH2 X-Gm-Message-State: AOJu0Yy6HRvVtSF+sEwhNjIPt3A0OH8SZSPhOOeHeW0Y0Lj1IXKsodQc 1EOsD+QSeHQeYD774q65YuoPs0RiWKAE6AtkGzeMtdmft85xeaIHx++FpuPZb+YvmIx3aNRz/2w Qa9knCl6gjWevmoExHMJSDY6HFl48mqVnmeyi3ioS3qGehNoRUGuEKTn9P9CeJw== X-Received: by 2002:ad4:5f45:0:b0:69c:b191:4f29 with SMTP id p5-20020ad45f45000000b0069cb1914f29mr6643391qvg.9.1714161341253; Fri, 26 Apr 2024 12:55:41 -0700 (PDT) X-Received: by 2002:ad4:5f45:0:b0:69c:b191:4f29 with SMTP id p5-20020ad45f45000000b0069cb1914f29mr6643366qvg.9.1714161340964; Fri, 26 Apr 2024 12:55:40 -0700 (PDT) Received: from fedora.redhat.com ([142.189.203.61]) by smtp.gmail.com with ESMTPSA id v3-20020ad45343000000b006a0404ce6afsm1882268qvs.140.2024.04.26.12.55.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 12:55:40 -0700 (PDT) From: Lucas Karpinski To: viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, alexl@redhat.com, echanude@redhat.com, ikent@redhat.com, Lucas Karpinski Subject: [RFC v2 0/1] fs/namespace: defer RCU sync for MNT_DETACH umount Date: Fri, 26 Apr 2024 15:53:47 -0400 Message-ID: <20240426195429.28547-1-lkarpins@redhat.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi all, Attached is v2 of the umount optimization. Please take a look at v1 for the original introduction to the problem. Al made it clear in the previous RFC that if a filesystem is shut down by umount(2), that the shut down needs to be completed before the return from the syscall. The change in this version looks to address that by only deferring the release on lazy umounts. Lucas v2: - Only defer releasing umount'ed filesystems for lazy umounts v1: https://lore.kernel.org/all/20230119205521.497401-1-echanude@redhat.com/ Lucas Karpinski (1): fs/namespace: defer RCU sync for MNT_DETACH umount fs/namespace.c | 51 ++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 6 deletions(-) -- 2.44.0