]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: don't omit used_replica in target_copy()
authorIlya Dryomov <idryomov@gmail.com>
Tue, 9 Jun 2020 09:59:08 +0000 (11:59 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 16 Jun 2020 14:02:08 +0000 (16:02 +0200)
commite741242c08983e2c9627dfa25aff41d19640f029
tree918d5f31059a152c01052b4ea53be325f268ea15
parenta964aac1daa615b78bcec82df2f4429503baaedd
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: b4bd924a0c31 ("libceph: support for balanced and localized reads")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
net/ceph/osd_client.c