libceph: use target_copy() in send_linger()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 10 Jun 2020 12:41:30 +0000 (14:41 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Aug 2020 09:03:01 +0000 (11:03 +0200)
commit5133ba8f15911e98567cdb6b767be8080a636b0b
treeaac62c0ed7a3605bca9f255ed25603dbfe914951
parentbcf876870b95592b52519ed4aafcf9d95999bc9c
libceph: use target_copy() in send_linger()

Instead of copying just oloc, oid and flags, copy the entire
linger target.  This is more for consistency than anything else,
as send_linger() -> submit_request() -> __submit_request() sends
the request regardless of what calc_target() says (i.e. both on
CALC_TARGET_NO_ACTION and CALC_TARGET_NEED_RESEND).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
net/ceph/osd_client.c