This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: call ->rio_sent() unconditionally. (#980)
rpc promises to call m0_rpc_item_ops::rio_sent() when item is placed on the wire, or when sending process completes. Rpc users depend on ->rio_sent() being called in case of error, for all types of items (requests, one-ways, replies): - rpc itself (conn_terminate_reply_sent_cb()); - ha/link.c (ha_link_outgoing_item_sent()). Rpc fails to invoke ->rio_sent() in the following cases: - item was cancelled (item_sent()), - item sent failed and item was not one-way (m0_rpc_item_failed()). Fix all these places to invoke ->rio_sent(). Signed-off-by: Nikita Danilov <nikita.danilov@seagate.com>
- Loading branch information
Nikita Danilov
authored
Nov 16, 2021
1 parent
c4e8120
commit c5c0646
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters