Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3579300imu; Mon, 10 Dec 2018 04:41:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/X9zgPzhfCjBiD8F9fLAk172SfZDplFbykRTiA4xU4mi6fMbww124yU1KX9cb1SXPcsODoL X-Received: by 2002:a62:60c5:: with SMTP id u188mr12296953pfb.4.1544445699692; Mon, 10 Dec 2018 04:41:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544445699; cv=none; d=google.com; s=arc-20160816; b=SJm5klBrVdcUKbinVcDxC8qXNKG2VYNyEQDn0zOM1n2GGJGpoCoetR1VbhsddgBPsO mPtCtqo9RKg1M0A+r40H6+FMhur3jkLlMTGDHd4S7w72s+H3oEBn10x5JrTRc+AJ1/9f Du5LHPvbFqbDzuoaEWu07ShxhNaljUMpG6PLS67U6Z47jjphUE9Sz4SzIvO4yBUtcO1A gGYhmdMNLW7d0vbej4u8Hfbs9D5IE14yGzneFd3ipk+9ZWy5wJEP2czhRnau+OpdnVWb I3VvrlxNvHSvBSnEVpWIYVOtP3y2G5mCyQ9+wCJmw2Bcas4k8PoNHJz7Qa9rAJoQBDdq iiEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=E9TMhNozQqHbA08pE2WjLjvAZD1L8IN3UjBBwzGYzzw=; b=F2qNIXYABY4GpxCmfb+IBgnS8sCDldAG4zNEotpvmsy69lKejNSikooRiRx/CWrVvX 9JrpJzBF2lNu+ZFaElZ4tXBBo9ZMirmrZzxFe+Ox3PyKVjGlc05v1MpGF0E1EJM3Kn8h 4h7Yz7Z62qPTjJ/7f1mCgyK3JN3U8NV9FjOW3jVx29T8LRjdT1ob9y5j3hBYRiJIyi8v syZmhTmM0fmUxI0B06LSF3mqJsLBAzPbMDrmHsK/RYXMEuQXN99eXqYCdjijCZET1qF/ 5dK3D5gpskwPDeTbT0ardMuUFtgWyWFDC1r8eBbCsxADJDJgqkvjMgcsm6Oj/iXyDXiV Z/Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eB4rFUSp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si10233714plh.426.2018.12.10.04.41.20; Mon, 10 Dec 2018 04:41:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eB4rFUSp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727129AbeLJLOY (ORCPT + 99 others); Mon, 10 Dec 2018 06:14:24 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:38724 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbeLJLOX (ORCPT ); Mon, 10 Dec 2018 06:14:23 -0500 Received: by mail-io1-f65.google.com with SMTP id l14so8379287ioj.5; Mon, 10 Dec 2018 03:14:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E9TMhNozQqHbA08pE2WjLjvAZD1L8IN3UjBBwzGYzzw=; b=eB4rFUSp+HnWCsFErQwDPW1UyHhSVTCUDEoMvYQ8kKWwLzOn0vRMmtwuBxD3h+goiV Ms+ygNkyiQSSrThV7SPDyMD8+MXKdTrRMfGsxruKVinju5sYoAm5TVp2URjH4dZ9Eic4 btTbke6o540KdCqPGDRSsQh6QYtXJdBgxySIpW9skaWM38Vkkc52EceV598fh+zPOCew Ob+YXiCtv/yo92jGzoU9nTslqH5pd/zRkOB0jqLAnHrneMApthgLEJoQ8C+Ve6kqZtkO x0r8M6V5ytBUz9HVQOiVkp8LkIql+iseHjI4zMIFMURALWhqFp2//ZMbSXem/wfZ+VG8 siHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E9TMhNozQqHbA08pE2WjLjvAZD1L8IN3UjBBwzGYzzw=; b=SHryM3vld46aQnDJIkqN9j9FN8Zv30dCtLO60aLglxWcXUQnA9bGFMyoTGBePb+W7Q gamGXC/px0pYdfDuuWt3oEB3Mcpn/6DJItfZR45+7GJH9Usl8oisS2UvNE7WcrFjWLGt cFIv47fmoos0vPuZxYuLjSfpSgQPs3E416nmffvUKXniVwbuQ8u3rVz29Jyf4Adsgmxb q5omMFN6Eod4lOp+KkT4s3U0jx5vYsrgQ4yzrxqKeu1J805GBSK9MwM62SaiVrgfYUvt FJD5GGI6RRHcOoB9JLQRWsBLOjlAtU1JGgr6iEEckK7QqoDi3ZjMatOSKYW1QsaM734L GaEg== X-Gm-Message-State: AA+aEWbqGV4v7aoie5/0lseiXQyJbJOpcxqEblSJLVmZqZmDyf/YrX9C vdVLM3RAAQtlV4r3k4hn348LunyVojHdSGk9TGs= X-Received: by 2002:a6b:2b95:: with SMTP id r143mr9477175ior.217.1544440462853; Mon, 10 Dec 2018 03:14:22 -0800 (PST) MIME-Version: 1.0 References: <20181210102312.31364-1-lhenriques@suse.com> In-Reply-To: <20181210102312.31364-1-lhenriques@suse.com> From: Ilya Dryomov Date: Mon, 10 Dec 2018 12:14:11 +0100 Message-ID: Subject: Re: [PATCH] ceph: make 'nocopyfrom' a default mount option To: Luis Henriques Cc: "Yan, Zheng" , Sage Weil , Gregory Farnum , Ceph Development , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 10, 2018 at 11:23 AM Luis Henriques wrote: > > Since we found a problem with the 'copy-from' operation after objects have > been truncated, offloading object copies to OSDs should be discouraged > until the issue is fixed. > > Thus, this patch adds the 'nocopyfrom' mount option to the default mount > options which effectily means that remote copies won't be done in > copy_file_range unless they are explicitly enabled at mount time. > > Link: https://tracker.ceph.com/issues/37378 > Signed-off-by: Luis Henriques > --- > fs/ceph/super.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/fs/ceph/super.h b/fs/ceph/super.h > index c005a5400f2e..79a265ba9200 100644 > --- a/fs/ceph/super.h > +++ b/fs/ceph/super.h > @@ -42,7 +42,9 @@ > #define CEPH_MOUNT_OPT_NOQUOTADF (1<<13) /* no root dir quota in statfs */ > #define CEPH_MOUNT_OPT_NOCOPYFROM (1<<14) /* don't use RADOS 'copy-from' op */ > > -#define CEPH_MOUNT_OPT_DEFAULT CEPH_MOUNT_OPT_DCACHE > +#define CEPH_MOUNT_OPT_DEFAULT \ > + (CEPH_MOUNT_OPT_DCACHE | \ > + CEPH_MOUNT_OPT_NOCOPYFROM) > > #define ceph_set_mount_opt(fsc, opt) \ > (fsc)->mount_options->flags |= CEPH_MOUNT_OPT_##opt; Thanks Luis, I'll pick it up for 4.20. Ilya