]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: resend lingering requests with a new tid
authorIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 3 Sep 2014 10:41:45 +0000 (14:41 +0400)
committerIlya Dryomov <idryomov@redhat.com>
Tue, 14 Oct 2014 17:03:19 +0000 (21:03 +0400)
commitf7d77ed3ef414d21d1d0a8cff746b010aaa1cc45
treeec01f8fa1901e90dd86b79184e680b3b327ad28d
parent61e071b8264c03c4aee300c0a3ee5da27eb9f7bd
libceph: resend lingering requests with a new tid

Both not yet registered (r_linger && list_empty(&r_linger_item)) and
registered linger requests should use the new tid on resend to avoid
the dup op detection logic on the OSDs, yet we were doing this only for
"registered" case.  Factor out and simplify the "registered" logic and
use the new helper for "not registered" case as well.

Fixes: http://tracker.ceph.com/issues/8806
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osd_client.c