Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3455377imu; Mon, 10 Dec 2018 02:29:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/WKJmhoJ8eg5cv+/0U3JD28Bb+nLnATbTkJXTjQk0jiQ3s1vorJKPt4+uVkDNjdDHJGp2hJ X-Received: by 2002:a17:902:8607:: with SMTP id f7mr11305720plo.123.1544437785246; Mon, 10 Dec 2018 02:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544437785; cv=none; d=google.com; s=arc-20160816; b=lUanfzpSA2yUFyCAK8lG5h0GNiYJWiypykQW2X/d6EsDds/Cs2Rf6IlcqscjAf/pnA u13NK16H+YMhB8YkzoRcO4nG0WuPlBo/S9a+OGS2yS3NnM5Y6TLHiHBwfX6Y/SYw5EeP 8R2m90ABGPG4bJDvvBMzIuS7y8hOdS+9sfezn9ehwJAszKun/XBF2gS0CPiNYA/fU3tb KTA0qEzkBZwL3tHMCS7wpj+MJL0UCsUKcj0+00hxA1QZJBPExKkDasx50u1UkOT93ABx KN/FGyBOHAd7+57Mszhipvr0LPHe/0UlmEZArWCzbsxlnmaxrBwYQ4ejM8qJt8Dyfg0w QplA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jVcKTkJxI+u0HPI6rL5e+KvMI6JK3C6hTrSfKAlvnxk=; b=X9UFukS+gBOc9QCphf55AxcxBajMW13ZM2dRBZhQUczCBBi5GotR2R8mPc6nFFMYHt 4SyeMtskFlPEIdfR9tqeniH2G41rVJ1cmfxbQ07sqFDWGfUmqvVopQg8LqyrOC6GnFLj e3nXPWRhN2bm0X2NAy49+eYDWVi0fSGiqLPb+y1Qi32x465qwIuDHReMOh9od0Rc3+rc bVfY13K++uZzk67+IQsvwjgm74uON8NH4LoKRdN2Y1oNk8JTi1QOJ13dxLQiJDiHFl4x X7kuCzjFuMlHG4IveqMgzZ0uP2MvoWkwjnNTjuvTyUF++Ye9IyH5iygqw3Q2E+L6cvjx HjKA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y26si10314436pfd.25.2018.12.10.02.29.29; Mon, 10 Dec 2018 02:29:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbeLJKXC (ORCPT + 99 others); Mon, 10 Dec 2018 05:23:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:48188 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726969AbeLJKXB (ORCPT ); Mon, 10 Dec 2018 05:23:01 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 18F61AD66; Mon, 10 Dec 2018 10:23:00 +0000 (UTC) From: Luis Henriques To: "Yan, Zheng" , Sage Weil , Ilya Dryomov , Gregory Farnum Cc: ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Henriques Subject: [PATCH] ceph: make 'nocopyfrom' a default mount option Date: Mon, 10 Dec 2018 10:23:12 +0000 Message-Id: <20181210102312.31364-1-lhenriques@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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;