Message ID | 20210604050512.552649-3-vshankar@redhat.com |
---|---|
State | New |
Headers | show |
Series | ceph: use new mount device syntax | expand |
diff --git a/fs/ceph/super.c b/fs/ceph/super.c index e273eabb0397..ccbd72e53998 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -1169,6 +1169,12 @@ static int ceph_reconfigure_fc(struct fs_context *fc) else ceph_clear_mount_opt(fsc, ASYNC_DIROPS); + if (strcmp(fsc->mount_options->mon_addr, fsopt->mon_addr)) { + kfree(fsc->mount_options->mon_addr); + fsc->mount_options->mon_addr = kstrdup(fsopt->mon_addr, + GFP_KERNEL); + } + sync_filesystem(fc->root->d_sb); return 0; }
Note that the new monitors are just shown in /proc/mounts. Ceph does not (re)connect to new monitors yet. Signed-off-by: Venky Shankar <vshankar@redhat.com> --- fs/ceph/super.c | 6 ++++++ 1 file changed, 6 insertions(+)