History

libceph: pass the message pointer instead of loading con->out_msg

This pointer is in a register anyway, so let's use that instead of reloading from memory everywhere. [ idryomov: formatting ]

Max Kellermann committed 1 year ago

Commit 73992121 parent 59699a54 files · +114 −107Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/ceph/messenger.h+2−2
@@ -555,7 +555,7 @@ struct ceph_msg *ceph_con_get_out_msg(struct ceph_connection *con); · 554 unmodified lines
555/* messenger_v1.c */555/* messenger_v1.c */
556int ceph_con_v1_try_read(struct ceph_connection *con);556int ceph_con_v1_try_read(struct ceph_connection *con);
557int ceph_con_v1_try_write(struct ceph_connection *con);557int ceph_con_v1_try_write(struct ceph_connection *con);
558void ceph_con_v1_revoke(struct ceph_connection *con);558void ceph_con_v1_revoke(struct ceph_connection *con, struct ceph_msg *msg);
559void ceph_con_v1_revoke_incoming(struct ceph_connection *con);559void ceph_con_v1_revoke_incoming(struct ceph_connection *con);
560bool ceph_con_v1_opened(struct ceph_connection *con);560bool ceph_con_v1_opened(struct ceph_connection *con);
561void ceph_con_v1_reset_session(struct ceph_connection *con);561void ceph_con_v1_reset_session(struct ceph_connection *con);
@@ -564,7 +564,7 @@ void ceph_con_v1_reset_protocol(struct ceph_connection *con); · 2 unmodified lines
564/* messenger_v2.c */564/* messenger_v2.c */
565int ceph_con_v2_try_read(struct ceph_connection *con);565int ceph_con_v2_try_read(struct ceph_connection *con);
566int ceph_con_v2_try_write(struct ceph_connection *con);566int ceph_con_v2_try_write(struct ceph_connection *con);
567void ceph_con_v2_revoke(struct ceph_connection *con);567void ceph_con_v2_revoke(struct ceph_connection *con, struct ceph_msg *msg);
568void ceph_con_v2_revoke_incoming(struct ceph_connection *con);568void ceph_con_v2_revoke_incoming(struct ceph_connection *con);
569bool ceph_con_v2_opened(struct ceph_connection *con);569bool ceph_con_v2_opened(struct ceph_connection *con);
570void ceph_con_v2_reset_session(struct ceph_connection *con);570void ceph_con_v2_reset_session(struct ceph_connection *con);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t