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
555555 /* messenger_v1.c */
556556 int ceph_con_v1_try_read(struct ceph_connection *con);
557557 int ceph_con_v1_try_write(struct ceph_connection *con);
558−void ceph_con_v1_revoke(struct ceph_connection *con);
558+void ceph_con_v1_revoke(struct ceph_connection *con, struct ceph_msg *msg);
559559 void ceph_con_v1_revoke_incoming(struct ceph_connection *con);
560560 bool ceph_con_v1_opened(struct ceph_connection *con);
561561 void 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
564564 /* messenger_v2.c */
565565 int ceph_con_v2_try_read(struct ceph_connection *con);
566566 int ceph_con_v2_try_write(struct ceph_connection *con);
567−void ceph_con_v2_revoke(struct ceph_connection *con);
567+void ceph_con_v2_revoke(struct ceph_connection *con, struct ceph_msg *msg);
568568 void ceph_con_v2_revoke_incoming(struct ceph_connection *con);
569569 bool ceph_con_v2_opened(struct ceph_connection *con);
570570 void 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