Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4853091rwb; Tue, 8 Aug 2023 15:14:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8VYWmkjAe/btTSdUNgxmo0QaDQeRdwQ1+7RHI30Ft2DobUIQNUtTrn04B7N5aMZrYeDCl X-Received: by 2002:ac2:5f4c:0:b0:4f8:6abe:5249 with SMTP id 12-20020ac25f4c000000b004f86abe5249mr548359lfz.3.1691532869773; Tue, 08 Aug 2023 15:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691532869; cv=none; d=google.com; s=arc-20160816; b=r/O1Qm86Bopq+0Pt8YfSSOEOWW+1cJ0vbf+DzeQ8jl39CVdIGQ4QImeCGeS07Pv99t CbttR04vULhsxB1/I+MXhlFB6n1nw0G2EDdcxTbPRB6+Jo0Au3C+sjGGn2/2SbJor29I 7d7DHTxHaasg2DYSFIca3Q9aS5F/qYiP0FzkAyanibqPmyyOn1+IRP9lIcJhPvDz6ztq tfwWGsh0y+/zjQPHDnOnygest2iIAbYv2WA59bewwUrgkrRYzJGtcOvi9KERq1zl51wV kk05ePwRINew7p+1lLNrc3xTQNjbu5HYKe+bF0+kdjrXeDS+N2oUEfiE5J9F4qtq3XuU RovQ== 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=+LPhKJdQTcwFoDItceYL3qjZJlSnPxbCU8xvPi+Vd8A=; fh=QK9afsCPAFE+ywwYWmtxdwM9H+kfNEJlwEHrknbjpJs=; b=yuVrmCLfy0DRXhr9OZyVVxbpVhR6qJN2cokHjxGPCZR80sNDKqYasWJjiJfcDLcbCd n3XMLZbd5IlHKbn0JOaxYrpCkqZBAwBkQivuXzv49gz9UfEo8ZJEgPaa0BAW9KH0PVaw BdAmnTIVRoZHNzCqquriL6q9Q4DQSMJ2BU6aJZKr7K8lcYl+mbtygUBNQV898rNhFhPX vFHS97gCPTRb/vwc+jS8zQRreBZ9DV2fVgxfzn0RJZClRPF2ra4a2FfuH8WyN4XPgTCw FNG2ssZqRyLMnZeYNszxCNneipjY0HNYNQhFxVIUMGn+Bv4AOKFJi4UUR/6R6jazSMTi E/CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=a7Y7Uja5; 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 w24-20020aa7dcd8000000b005234af90321si1252783edu.665.2023.08.08.15.14.05; Tue, 08 Aug 2023 15:14:29 -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=a7Y7Uja5; 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 S235258AbjHHSOI (ORCPT + 99 others); Tue, 8 Aug 2023 14:14:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235292AbjHHSNi (ORCPT ); Tue, 8 Aug 2023 14:13:38 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2BE3744B7 for ; Tue, 8 Aug 2023 10:19:14 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5222c5d71b8so8255310a12.2 for ; Tue, 08 Aug 2023 10:19:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1691515148; x=1692119948; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+LPhKJdQTcwFoDItceYL3qjZJlSnPxbCU8xvPi+Vd8A=; b=a7Y7Uja51LpOnsbvN2jw/j0zaBQumTDCa3kDQPJebVDIhi71lEgwqgRZg2v1lUeAov GjAQpU1TASBkwKved/eg0zQ3Fts5ESw//r2XleDJ91OfhWRiLeI8bEdvbI1JduXN33Nw 6qBxd8Febunk14JGeFM93LdBvrXvf6iR88sqI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691515148; x=1692119948; 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=+LPhKJdQTcwFoDItceYL3qjZJlSnPxbCU8xvPi+Vd8A=; b=e87gSdoyxfEHeBXq5zhBq3S3FZBiCUnGiVGDtbA2bEc45DHj1ozsI+rfyHmbyYLGFN VhK2TpIrJpLdhEvB2sbBJjS6XRZwdBSv8wSrOiWcIxjYYr9roWubvPKGvHN0nPavTHiI i/0drRIlu+kMfH14/vmdAYHvgKfl9DrkhHeM54RvORtj60bBuMz15kqpsRGcc/JNsCjn hYuSi4p7LxqqBg9uW3/v3OpdPGkI8ZveeDgLUelDDScZil+tgUU0RtS+zx4ADXs2gbrj dCPGXthYtk5ltnFix+1BrGoZoJwVAKOy7XO/8XMum0UVri6LPUzTTDl7Zvubbg2MIL2K HA4w== X-Gm-Message-State: AOJu0YzCskYt/FeDEriZdwzKVDNkZSpLkEUz9dj4d7/T6kccwVNHP3xl jHkxLUUBo/ofh6sxS310cCKv6svuDXVHjAi2+NVbiNkB X-Received: by 2002:aa7:d052:0:b0:523:95e:c2c0 with SMTP id n18-20020aa7d052000000b00523095ec2c0mr308166edo.42.1691515148174; Tue, 08 Aug 2023 10:19:08 -0700 (PDT) Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com. [209.85.208.48]) by smtp.gmail.com with ESMTPSA id c18-20020aa7c752000000b0052228721f84sm6969393eds.77.2023.08.08.10.19.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Aug 2023 10:19:07 -0700 (PDT) Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5222c5d71b8so8255290a12.2 for ; Tue, 08 Aug 2023 10:19:07 -0700 (PDT) X-Received: by 2002:aa7:d6c6:0:b0:523:1ce9:1f41 with SMTP id x6-20020aa7d6c6000000b005231ce91f41mr435083edr.18.1691515146925; Tue, 08 Aug 2023 10:19:06 -0700 (PDT) MIME-Version: 1.0 References: <20230806230627.1394689-1-mjguzik@gmail.com> <87o7jidqlg.fsf@email.froward.int.ebiederm.org> In-Reply-To: From: Linus Torvalds Date: Tue, 8 Aug 2023 10:18:50 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] fs: use __fput_sync in close(2) To: Mateusz Guzik Cc: "Eric W. Biederman" , viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, oleg@redhat.com, Matthew Wilcox , Christian Brauner Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,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 Tue, 8 Aug 2023 at 10:10, Mateusz Guzik wrote: > > Few hours ago I sent another version which very closely resembles what > you did :) > 2 main differences: > - i somehow missed close_fd_get_file so I hacked my own based on close_fd > - you need to whack the kthread assert in __fput_sync Good call on teh __fput_sync() test. That BUG_ON() made sense ten years ago when this was all re-organized, not so much now. > I'm offended you ask, it's all in my opening e-mail. Heh. I wasn't actually cc'd on that, so I'm going by context and then peeking at web links.. Linus