Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4273401pxb; Tue, 31 Aug 2021 00:41:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhjuW8bR19H6NHI8uGdN2qcmq1Oyphoznv5O3/Z6V7CQYbodvf/Qs73VzmPs1XOOpHWdpL X-Received: by 2002:a17:906:12d8:: with SMTP id l24mr21703988ejb.126.1630395705088; Tue, 31 Aug 2021 00:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630395705; cv=none; d=google.com; s=arc-20160816; b=bvo/qPduV/khyGn00WV+1bn3ly1XoypFp+2cEu6P1QmCNF0oTUmk25cFXNyNoAeqSP lo4naCCs14cLbhTCK0uu9d+EPgJyjb/Wk1jNb6H1jm++QwFDwLimKvG/twBip8+HPopE 7cRIn96VhjOsdeHQBRzCPIzPKpG0peRwvZdg3tEh43MVc3iHwVpmP8raEv+HynZGb9oh If2h+5DM4EQ4LJAVdUu26znA5g01wkMPLYVQezseii6E5qVfsDtya9x/exoUWOXmr490 rGz5aHcl5ewF7QaM+wmP1oqFQUungW9PeEJsE06w/bSXo6kvbyr0+l2sNYy0IVLqqzY5 qiRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ajStHAqFCfZyOxjKT5yYneIjsOzKqNxIQBqHXd6n6/k=; b=Qzwe1nryXSrO2G4nT0GK1pGLQLDNJg2jOerAQfsxAfJNiSE0/OqreGTPUpzSLBE9w3 /r8KynzOOw4aTUwPKMyV4GCu0Xuol3NIjzIe0LqiSPvEM7c23enqiLSOn/gNAjTZ2l3i IDKE2NM68OgcmrM+Jb0JGXWx7CPdVHCsDINw2UZGGpjNV0ZfjhqswNS2UocjqXmz6XnG a+dXIQboqHFsjh7KuoMmSy9nVKpYWAMhN1715toxnMLSGTpnr3nttRIUbjc05hoVbId0 OToC8jHRKFtgp2l8miByjzupoHYOUN3YAzLG8/M5s6T9ZSImkAMS7inzn0V2wpxIZ5Iv +Xaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb4si17912296ejc.246.2021.08.31.00.41.22; Tue, 31 Aug 2021 00:41:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239936AbhHaHk5 (ORCPT + 99 others); Tue, 31 Aug 2021 03:40:57 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:52202 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239753AbhHaHk5 (ORCPT ); Tue, 31 Aug 2021 03:40:57 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R661e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=joseph.qi@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UmjUpSh_1630395599; Received: from B-D1K7ML85-0059.local(mailfrom:joseph.qi@linux.alibaba.com fp:SMTPD_---0UmjUpSh_1630395599) by smtp.aliyun-inc.com(127.0.0.1); Tue, 31 Aug 2021 15:40:00 +0800 Subject: Re: [PATCH] ocfs2: avoid getting dlm lock of the target directory multiple times during reflink process To: Gang He , mark@fasheh.com, jlbec@evilplan.org Cc: linux-kernel@vger.kernel.org, ocfs2-devel@oss.oracle.com, akpm@linux-foundation.org References: <20210826075941.28480-1-ghe@suse.com> <744d756c-7640-d312-37ef-126755324e8a@suse.com> From: Joseph Qi Message-ID: Date: Tue, 31 Aug 2021 15:39:59 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <744d756c-7640-d312-37ef-126755324e8a@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/31/21 2:25 PM, Gang He wrote: > Hello Joseph and Wengang, > > When you have time, please help review this patch. > About the deadlock problem which was caused by ocfs2_downconvert_lock failure, we have the fix patch, it is very key. > But I feel this patch is still useful as a optimization patch, the user > case is to reflink the files to the same directory concurrently, our users usually backup the files(via reflink) from the cluster nodes concurrently(via crontab) every day/hour. > The current design, during the reflink process, the node will acquire/release dlm lock of the target directory multiple times, > this is very inefficient in concurrently reflink. > Sure, I'll spend some time this week. Thanks, Joseph