Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp158572iog; Fri, 17 Jun 2022 00:38:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tMAE1iPPooWp/V1CyBSLawh0ZP0c0TNoZIBFzsHGANJp8iPbW6BLzIH7URk3H5vVDnYbtS X-Received: by 2002:a05:6402:125a:b0:431:34c8:4805 with SMTP id l26-20020a056402125a00b0043134c84805mr8598889edw.314.1655451524192; Fri, 17 Jun 2022 00:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655451524; cv=none; d=google.com; s=arc-20160816; b=cutm1RHNwCoHoEIatvYFkAT43UEPETHquGEZ+1+rPoGpMQ64IEOTF/Z9jBR9j/2Gcm 5Mr4VyReAClG1fTOT2HVbqiCyohV1RibMoeghIsV9AWC+9KJXU8s71xx9T0fnDZ1zrrl W1xBjb7DN84/so/2sin6mdU6rhjkpvDXgnhm/EBSQjHaxkm2cb70lVIxCLIsg/2Z954G nau/UFMmLPyNFWdXX23Kvp3tZ42m6gCw1TLtGAIHpHoGbTyEV/TscGo9L/NZulAEWS4O y8+BW7KuLIX7e2eHhgTVRNB/ieFuRWMTqTe2fwb3Mds0rrpp8LDKRbNn/mNdsFXUbRpu a8uA== 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=lFSvXWnMhV0ta+uOardT419nO7q6Hq5t2QYuh46TUv4=; b=qsH0dxAhGV6Ge/xk4OUy3uGacg8lSI/shA5D71pAdmpBPDmQ9iOCS+G5KH5nnna1fJ rvrMcSY9mIaTSUOAIUWhvgQSWYKeHrJF/iuGEgKAs7oG2ggqsX0D5WnOUqi8LoXWu/7g uVeZZqx1BaV2WrQPQxaDtDPQRW4wZ2VfiqJFsTerqaU5rUlY4yiMO4UHGlbl+gb+lswm bqpxy1DMI584+X5G7L5Aa0dR6CSLOEOdOAT1j2FSCktUXiLHUr9oOnHvFjZzUjQ9+E1P qHghZn4Ghzrq7k3DYhAcpEDpIfPc/NklXFtPK4Z1GQN4z7H6bsQi4bOEEEhrRVsgykaG rlag== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Qhai7TiO; 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 m6-20020a17090672c600b0071576ce44e1si3539703ejl.91.2022.06.17.00.38.14; Fri, 17 Jun 2022 00:38:44 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=Qhai7TiO; 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 S1380468AbiFQHg2 (ORCPT + 99 others); Fri, 17 Jun 2022 03:36:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380565AbiFQHgZ (ORCPT ); Fri, 17 Jun 2022 03:36:25 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8394A66F8D for ; Fri, 17 Jun 2022 00:36:22 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id h23so7120794ejj.12 for ; Fri, 17 Jun 2022 00:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lFSvXWnMhV0ta+uOardT419nO7q6Hq5t2QYuh46TUv4=; b=Qhai7TiOMAImwxaojs6g3DzfizpP400kQjj8YnEIFYKPoCiq9tH26r2InFHJYazbAe 2oUD5p1gCgYD90nQMBltPqFO8vSZJpa0QS8TdcCLl5gCsPhDyIliBidIxA4v+yMC7nDa omc1Sj/QY/mrcAB6OAcCPHxzhRX76dsnKSbRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lFSvXWnMhV0ta+uOardT419nO7q6Hq5t2QYuh46TUv4=; b=xk3nsaRLmKKaspJ58h8TyiQdFZCuKCtbVbWoBOWOSmzRq66T8YFis0cplrAekXiIaP 9JiubbXjgyNVxXS0TYqhUGBJe8w4T5+MJwe0Q3+weYky8cKACADW63Ohn+jtFsZ7v5Ww UobUOLfGdXjHUnsZtOWDgaqfdf7ARuVxQ68K2zae8hOY9Dw9uls/IRhFYt4a4tvH3+AE RBL+Z9WHxpX4gX7FtKuIL6nvlNDpdTzLeTCVEjfmTaE4brcrclu/nxdQCQAceKfC4qbE 2XXHTg61IypCDNn7GUB79Lt2wp5h7aHlpxDGB8l8PK9Me5/Rdvf6Q9vN7ujlq5oZafby CXng== X-Gm-Message-State: AJIora+qIfplFRNZQuWAGPIXhVWl6cKGitR0MgGKiGccZ3YhhqRSlWJe RYwB2vW7CQ++qyQ/mQCWi6mpRi5ti1NaCc4W0kGuEA== X-Received: by 2002:a17:906:b788:b0:711:fc54:e55e with SMTP id dt8-20020a170906b78800b00711fc54e55emr7843526ejb.270.1655451381149; Fri, 17 Jun 2022 00:36:21 -0700 (PDT) MIME-Version: 1.0 References: <20220617071027.6569-1-dharamhans87@gmail.com> <20220617071027.6569-2-dharamhans87@gmail.com> In-Reply-To: <20220617071027.6569-2-dharamhans87@gmail.com> From: Miklos Szeredi Date: Fri, 17 Jun 2022 09:36:10 +0200 Message-ID: Subject: Re: [PATCH v5 1/1] Allow non-extending parallel direct writes on the same file. To: Dharmendra Singh Cc: Vivek Goyal , linux-fsdevel@vger.kernel.org, fuse-devel , linux-kernel@vger.kernel.org, Bernd Schubert , Dharmendra Singh Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, 17 Jun 2022 at 09:10, Dharmendra Singh wrote: > This patch relaxes the exclusive lock for direct non-extending writes > only. File size extending writes might not need the lock either, > but we are not entirely sure if there is a risk to introduce any > kind of regression. Furthermore, benchmarking with fio does not > show a difference between patch versions that take on file size > extension a) an exclusive lock and b) a shared lock. I'm okay with this, but ISTR Bernd noted a real-life scenario where this is not sufficient. Maybe that should be mentioned in the patch header? Thanks, Miklos