summaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2020-06-09 11:59:08 +0200
committerIlya Dryomov <idryomov@gmail.com>2020-06-16 16:02:08 +0200
commit7ed286f3e061ee394782bd9fb4ed96bff0b5a021 (patch)
tree918d5f31059a152c01052b4ea53be325f268ea15 /net/ceph
parent2f3fead62144002557f322c2a7c15e1255df0653 (diff)
downloadlinux-stable-7ed286f3e061ee394782bd9fb4ed96bff0b5a021.tar.gz
linux-stable-7ed286f3e061ee394782bd9fb4ed96bff0b5a021.tar.bz2
linux-stable-7ed286f3e061ee394782bd9fb4ed96bff0b5a021.zip
libceph: don't omit used_replica in target_copy()
Currently target_copy() is used only for sending linger pings, so this doesn't come up, but generally omitting used_replica can hang the client as we wouldn't notice the acting set change (legacy_change in calc_target()) or trigger a warning in handle_reply(). Fixes: 117d96a04f00 ("libceph: support for balanced and localized reads") Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/osd_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 8f7fbe861dff..2db8b44e70c2 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -448,6 +448,7 @@ static void target_copy(struct ceph_osd_request_target *dest,
dest->recovery_deletes = src->recovery_deletes;
dest->flags = src->flags;
+ dest->used_replica = src->used_replica;
dest->paused = src->paused;
dest->epoch = src->epoch;