Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbcKGKEI (ORCPT ); Mon, 7 Nov 2016 05:04:08 -0500 Received: from mail-yw0-f178.google.com ([209.85.161.178]:35855 "EHLO mail-yw0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436AbcKGKEG (ORCPT ); Mon, 7 Nov 2016 05:04:06 -0500 MIME-Version: 1.0 X-Originating-IP: [217.173.44.24] In-Reply-To: References: <1477380887-21333-1-git-send-email-mszeredi@redhat.com> <1477380887-21333-4-git-send-email-mszeredi@redhat.com> <20161025115748.ydhkkp5cfcdnjzwn@home.ouaza.com> From: Miklos Szeredi Date: Mon, 7 Nov 2016 11:04:04 +0100 Message-ID: Subject: Re: [PATCH 3/3] ovl: redirect on rename-dir To: Konstantin Khlebnikov Cc: Raphael Hertzog , Miklos Szeredi , "linux-unionfs@vger.kernel.org" , Guillem Jover , linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 519 Lines: 14 On Mon, Nov 7, 2016 at 10:58 AM, Konstantin Khlebnikov wrote: > I've stumbled on somehow related problem - concurrent copy-ups are > strictly serialized by rename locks. > Obviously, file copying could be done in parallel: locks are required > only for final rename. > Because of that overlay slower that aufs for some workloads. Easy to fix: for each copy up create a separate subdir of "work". Then the contention is only for the time of creating the subdir, which is very short. Thanks, Miklos