Skip to content

Commit c19bf74

Browse files
committed
Merge tag 'ceph-for-4.20-rc7' of https://github.com/ceph/ceph-client
Pull ceph fix from Ilya Dryomov: "Luis discovered a problem with the new copyfrom offload on the server side. Disable it for now" * tag 'ceph-for-4.20-rc7' of https://github.com/ceph/ceph-client: ceph: make 'nocopyfrom' a default mount option
2 parents 7fb5f5d + 6f9718f commit c19bf74

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

fs/ceph/super.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root)
563563
seq_puts(m, ",noacl");
564564
#endif
565565

566-
if (fsopt->flags & CEPH_MOUNT_OPT_NOCOPYFROM)
567-
seq_puts(m, ",nocopyfrom");
566+
if ((fsopt->flags & CEPH_MOUNT_OPT_NOCOPYFROM) == 0)
567+
seq_puts(m, ",copyfrom");
568568

569569
if (fsopt->mds_namespace)
570570
seq_show_option(m, "mds_namespace", fsopt->mds_namespace);

fs/ceph/super.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
#define CEPH_MOUNT_OPT_NOQUOTADF (1<<13) /* no root dir quota in statfs */
4343
#define CEPH_MOUNT_OPT_NOCOPYFROM (1<<14) /* don't use RADOS 'copy-from' op */
4444

45-
#define CEPH_MOUNT_OPT_DEFAULT CEPH_MOUNT_OPT_DCACHE
45+
#define CEPH_MOUNT_OPT_DEFAULT \
46+
(CEPH_MOUNT_OPT_DCACHE | \
47+
CEPH_MOUNT_OPT_NOCOPYFROM)
4648

4749
#define ceph_set_mount_opt(fsc, opt) \
4850
(fsc)->mount_options->flags |= CEPH_MOUNT_OPT_##opt;

0 commit comments

Comments
 (0)