Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30642026rwd; Thu, 6 Jul 2023 08:40:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlG9gp65knJ7O9ytZ78GyRzlSAQAtdRPL2cRtzgtIBY9I4XP7yCdNo3OL6v9cO341H50S/to X-Received: by 2002:a17:903:11cd:b0:1b3:9d13:34b3 with SMTP id q13-20020a17090311cd00b001b39d1334b3mr2100096plh.37.1688658021688; Thu, 06 Jul 2023 08:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688658021; cv=none; d=google.com; s=arc-20160816; b=EurxkAN5HVsbor6GVUxEvLwm3ZPJDbmYnr82mdo1QtXGgR+XU+xXcXASWGXgGsk3xk z9lNXpEm5UxC2qbLOqM8ZRJ9NYti96eyLpZQLVkO5y70ne24lMuqWS7jJmXpHuFpFpH2 +dtBjgBxIQNHwQ4DmP4Hv5dcB0OfObZn3i/APfXkwVYQZJVNghamd3StkuPFFi33+Ykp W63XpZCQuA1Oi3Ir/APeDwBb1YkwvNwCmzdLqjGmjLEGTculbvDj3Zljat2EWRWyP3mr Tw+2rRYCJTZUTWpt8/pkaEqbND+M4DFXBLQMgoTOaXur9yTcTQlGAePWNRorpfV0VvrX 1eOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=yhAoOQcwd+d4OLL39cP41fnoMThXfUILYjJ33i61aFU=; fh=qGpLcl5/S1nmu9621HGh/sYblOqC9u4x7YTTpSSGNco=; b=rFbi86kIymM4kFQOYHjstCJpFg8bHnwuxhTnruJL3B0j8tHXneD1lakqMG4V+KRGxd GhyrLykrww6SRfeC9sQWi++95lZJjI/Ydsz4WQEv9cs4y+WB/FvCR/WNEXoAkBYGFq9z pMi8c4PHYF+b4Cf6zZhKmyGw95Xlu8p55a9z8hFsCfRhM5JX8kKt7Td/SDncZJ6qWNzo z2Y/pBC2w3EQjXa0R9Ks2bTbUudPOC6lnKNU5rMJrS+/BJusU9tdRUvdhQzUNOcOGk0/ b3RbNW/b0tCYJNJ+3BvdENaFtsVAYI+aj9FPOC23SdcSDIky4Jx6+1u9GmAwA9eEpuvh 1lXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=QQmoeKEP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id li11-20020a170903294b00b001b66f1d121bsi1409759plb.255.2023.07.06.08.40.08; Thu, 06 Jul 2023 08:40:21 -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.dev header.s=key1 header.b=QQmoeKEP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbjGFPVJ (ORCPT + 99 others); Thu, 6 Jul 2023 11:21:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjGFPVI (ORCPT ); Thu, 6 Jul 2023 11:21:08 -0400 Received: from out-12.mta0.migadu.com (out-12.mta0.migadu.com [IPv6:2001:41d0:1004:224b::c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 870C51996 for ; Thu, 6 Jul 2023 08:21:07 -0700 (PDT) Date: Thu, 6 Jul 2023 11:20:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1688656865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yhAoOQcwd+d4OLL39cP41fnoMThXfUILYjJ33i61aFU=; b=QQmoeKEPL9xuySm8hbfJYwu3y419fER7BZmSfzAqdxmIB0txdzdDY15LCFe/FDNd1lSIVE Q5tHXN+llY0W9YMu9YVO4zj6K4ak8CeYIs2MhtqqnuHv3ExJYR/JUQR42h8qJTnz1LvTVO 9znAKCiJI+R2fKeBsRk5IsX2isSOjjM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Christian Brauner Cc: Jens Axboe , Dave Chinner , torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Christoph Hellwig , Al Viro Subject: Re: [GIT PULL] bcachefs Message-ID: <20230706152059.smhy7jdbim4qlr6f@moria.home.lan> References: <20230628221342.4j3gr3zscnsu366p@moria.home.lan> <20230628225514.n3xtlgmjkgapgnrd@moria.home.lan> <1e2134f1-f48b-1459-a38e-eac9597cd64a@kernel.dk> <20230628235018.ttvtzpfe42fri4yq@moria.home.lan> <20230629-fragen-dennoch-fb5265aaba23@brauner> <20230629153108.wyn32bvaxmztnakl@moria.home.lan> <20230630-aufwiegen-ausrollen-e240052c0aaa@brauner> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230630-aufwiegen-ausrollen-e240052c0aaa@brauner> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Jun 30, 2023 at 11:40:32AM +0200, Christian Brauner wrote: > We're all not very impressed with that's going on here. I think everyone > has made that pretty clear. > > It's worrying that this reply is so quickly and happily turning to > "I'm a real engineer" and "you're confused" tropes and then isn't even > making a clear point. Going forward this should stop otherwise I'll > cease replying. > > Nothing I said was confused. The discussion was initially trying to fix > this in umount and we're not going to fix async aio behavior in umount. Christain, why on earth would we be trying to fix this in umount? All you posted was a stack trace and something handwavy about how fixing it in umount would be hard, and yes it would be! That's crazy! This is a basic lifetime issue, where we just need to make sure that refcounts are getting released at the appropriate place and not being delayed for arbitrarily long (i.e. the global delayed fput list, which honestly we should probably try to get rid of). Furthermore, when issues with fput have caused umount to fail in the past it's always been considered a bug - see the addition of __fput_sync(), if you do some searching you should be able to find multiple patches where this has been dealt with. > My earlier mail clearly said that io_uring can be changed by Jens pretty > quickly to not cause such test failures. Jens posted a fix that didn't actually fix anything, and after that it seemed neither of you were interested in actually fixing this. So based on that, maybe we need to consider switching fstests back to AIO just so we can get work done...