From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 495E2CDB482 for ; Thu, 12 Oct 2023 08:34:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235452AbjJLIeg (ORCPT ); Thu, 12 Oct 2023 04:34:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235445AbjJLIeg (ORCPT ); Thu, 12 Oct 2023 04:34:36 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99D89BA for ; Thu, 12 Oct 2023 01:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cFQj1U04hs67e7Y9K/9zpcaZZEJuJLpBBT7zuT/L7M8=; b=l+HoTNbBg+5Z6bw3n1V9jG1a12 Dl12/uluYvC5IpkGPEgDt/nAjZO+OYrY8K0GMR1FIEtQqioDIxjT46wPvdjtZtypTSzj7+4yY7LbR spA1Opno7HxmQH3tvjPdeFCm4YJmBGuvB9vobFz0DLBo5SYKVcmBupD93W3qfGjvUxhAQDFwAsgXY 9ttcyINHA8e+iIbzVs3RGLs9YcqHWJ8EZ+xesXaSRkDTo5XXx1RMx2HFH5Xz2RBPmTO9pXOzFjDd3 qEUzJT8jDX7jzsinn/hvuQhPPy6X1YuCdDt6kBbIU9PuEinqrvKe+//Nj35qT5q6Sw37BB6YRXEC0 uBGzJaDQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qqr9O-000CUN-1f; Thu, 12 Oct 2023 08:34:34 +0000 Date: Thu, 12 Oct 2023 01:34:34 -0700 From: Christoph Hellwig To: Catherine Hoang Cc: linux-xfs@vger.kernel.org Subject: Re: [PATCH v3] xfs: allow read IO and FICLONE to run concurrently Message-ID: References: <20231012010845.64286-1-catherine.hoang@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012010845.64286-1-catherine.hoang@oracle.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Wed, Oct 11, 2023 at 06:08:45PM -0700, Catherine Hoang wrote: > Clone operations and read IO do not change any data in the source file, so they > should be able to run concurrently. Demote the exclusive locks taken by FICLONE > to shared locks to allow reads while cloning. While a clone is in progress, > writes will take the IOLOCK_EXCL, so they block until the clone completes. FYI, the first two lines are too long for the normal commit log format. Can you provide a justification for the change, i.e. worksloads for which this matters, and what metrics are improved?