Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp812406rdg; Thu, 10 Aug 2023 23:44:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/xKtqYcMNl8wxzIDYidDtvnZLuytuB68JHRnVBY+WTGzdTWlN4a1VYF9tnSP/0vNyxgLq X-Received: by 2002:a05:6808:2229:b0:3a7:470a:e702 with SMTP id bd41-20020a056808222900b003a7470ae702mr1447544oib.16.1691736244368; Thu, 10 Aug 2023 23:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691736244; cv=none; d=google.com; s=arc-20160816; b=FqFrjS7hBz7IqEaoje0/MKaxcdMPJsplsCTMaQjg7nomej3Wtd/s+/+/+yMcDYQd+3 8zkS/Sq9d5xozR+9mOfPrRlvmj3SiuFoYQr24+HcuDqHDuxpqNPRHhgdGet2G6F4JzSL 8JZf9/eYGvfKzzA5tkoUbjRTHbvv6/5FU/Z2LZ0Tq4hEyoxJ3tuLF/khWLx+FYbw5ZAl Ii/Ak8Lh9pXISLwdlMln5DCOWPp8q/B1msVhNkgs5oXIuO9tv6ICX/ubmppdS0Yk6wt/ msE73fdXEiJ9aanQyA2Iqp7UiXnt0VyHkE9UE3DjQFm7tRMJmfcfejwH6WFhkI6x/E7y Psqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yQWnzoDoyL9OA8op4B0emQIgXeKGA2NcTlOBONbgTOU=; fh=Q/Pw0ItSPWP7t7skEA740DRCftsMB7+JE8SNi2lfgq4=; b=dPrTIU4nLy/ZDzp3VUIIzrVXxfU1NzavWXpWyhxgSnBW3RpxwixiDgVEw/C+84fis4 1vI3SejtFCHiL3QFMLAc7xmt+wIatH38XH5ImiKwzxMnjT6EV+GeQn9ygyoD06dVeJ35 yhufc7sgnX2VFJpKw4hn+1LRuihmEv8TbMo8PCab8zYLDn7/vTe46NAjZFJjle0j7hVz 64cja4iahUwY/sIM/ZllmD4gN+AKuc9jTHmgPKnJZoxLs38A9M7mtyXIUb8l4o7DlZGa O53BIC0txAG6djHLZzWaPZDEnoyQAPhuZ2CQA+RMsQECLxkJI5mpArRsc6tR2wVsfbHW S84w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DDEmtnAP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u191-20020a6385c8000000b00565325c20b5si2922523pgd.760.2023.08.10.23.43.51; Thu, 10 Aug 2023 23:44:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DDEmtnAP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231510AbjHKFxs (ORCPT + 99 others); Fri, 11 Aug 2023 01:53:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjHKFxr (ORCPT ); Fri, 11 Aug 2023 01:53:47 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ABBD2706 for ; Thu, 10 Aug 2023 22:53:46 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99c3d3c3db9so226451166b.3 for ; Thu, 10 Aug 2023 22:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1691733225; x=1692338025; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yQWnzoDoyL9OA8op4B0emQIgXeKGA2NcTlOBONbgTOU=; b=DDEmtnAPDxZ92AY3RY6Yzena3BfhXP3IMBsHW9TRi8M8eBqVr5YqgDRAzmBOhBq+wI 0mQABjRHXqiZcAaPMk4CbOxQ9yIAycK5VgQEqhvqu0LrtyU29LA372NvLGzvdjuKJ7Da oppfCVBGZ4TiWhWmmntGHPghvbE74O+PRPN9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691733225; x=1692338025; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yQWnzoDoyL9OA8op4B0emQIgXeKGA2NcTlOBONbgTOU=; b=F2vrGKc+NTxA4IsPcRNUtrTNQl38IkFDv9p1lpKT8PERq9pFkXqbd0gqQWaBClipkd fbsSAjzgulUfkEAqNQpw4BKQ9XA187PXjhDGrCcrLDx4+ToiWRW006C5EikDgBKmvi53 zh4T1oI/dRbJ3YD2yKyQRK7Gn8KktNTUbCQipeq3ZVNogr1+ijT/rhmbbWCt8XxaZupa Ti9KGGsDxqJE2w214pIgQTbvroGosDfeqHNCwnZixLcgFaiqHSsoJ4aBOx8gH5e/YRds 365bvk+G476943Hm68qx9+6eHa3Qz9Imd5Q7wcl2HVyRLUIPpzxvwvmcIpyUg8Q9fPGc +Tgw== X-Gm-Message-State: AOJu0YwBS6RosPU+/FYSKT9xwLcHHceUpO9JhYaDlBbHNhk5694ACs2R z7A2LhDGSSz7QNLdyaom8xY7YE3wttb8Yd4V1+e0H4O9 X-Received: by 2002:a17:906:8457:b0:992:4250:545b with SMTP id e23-20020a170906845700b009924250545bmr808006ejy.47.1691733225151; Thu, 10 Aug 2023 22:53:45 -0700 (PDT) Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com. [209.85.208.45]) by smtp.gmail.com with ESMTPSA id f20-20020a1709064dd400b0099b6becb107sm1812831ejw.95.2023.08.10.22.53.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Aug 2023 22:53:45 -0700 (PDT) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-522dd6b6438so1955874a12.0 for ; Thu, 10 Aug 2023 22:53:44 -0700 (PDT) X-Received: by 2002:a05:6402:395:b0:51d:87c6:bf28 with SMTP id o21-20020a056402039500b0051d87c6bf28mr810373edv.3.1691733224570; Thu, 10 Aug 2023 22:53:44 -0700 (PDT) MIME-Version: 1.0 References: <20230626214656.hcp4puionmtoloat@moria.home.lan> <20230706155602.mnhsylo3pnief2of@moria.home.lan> <20230712025459.dbzcjtkb4zem4pdn@moria.home.lan> <20230810155453.6xz2k7f632jypqyz@moria.home.lan> <20230810223942.GG11336@frogsfrogsfrogs> <20230811040310.c3q6nml6ukwtw3j5@moria.home.lan> <20230811052922.h74x6m5xinil6kxa@moria.home.lan> In-Reply-To: <20230811052922.h74x6m5xinil6kxa@moria.home.lan> From: Linus Torvalds Date: Thu, 10 Aug 2023 22:53:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] bcachefs To: Kent Overstreet Cc: "Darrick J. Wong" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, dchinner@redhat.com, sandeen@redhat.com, willy@infradead.org, josef@toxicpanda.com, tytso@mit.edu, bfoster@redhat.com, jack@suse.cz, andreas.gruenbacher@gmail.com, brauner@kernel.org, peterz@infradead.org, akpm@linux-foundation.org, dhowells@redhat.com, snitzer@kernel.org, axboe@kernel.dk Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Aug 2023 at 22:29, Kent Overstreet wrote: > > On Thu, Aug 10, 2023 at 10:20:22PM -0700, Linus Torvalds wrote: > > If it's purely "umount doesnt' succeed because the filesystem is still > > busy with cleanups", then things are much better. > > That's exactly it. We have various tests that kill -9 fio and then > umount, and umount spuriously fails. Well, it sounds like Jens already has some handle on at least one io_uring shutdown case that didn't wait for completion. At the same time, a random -EBUSY is kind of an expected failure in real life, since outside of strictly controlled environments you could easily have just some entirely unrelated thing that just happens to have looked at the filesystem when you tried to unmount it. So any real-life use tends to use umount in a (limited) loop. It might just make sense for the fsstress test scripts to do the same regardless. There's no actual good reason to think that -EBUSY is a hard error. It very much can be transient. In fact, I have this horrible flash-back memory to some auto-expiry scripts that used to do the equivalent of "umount -a -t autofs" every minute or so as a horrible model for expiring things, happy and secure in the knowledge that if the filesystem was still in active use, it would just fail. So may I suggest that even if the immediate issue ends up being sorted out, just from a robustness standpoint the "consider EBUSY a hard error" seems to be a mistake. Transient failures are pretty much expected, and not all of them are necessarily kernel-related (ie think "concurrent updatedb run" or any number of other possibilities). Linus