Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ublksrv_reap_events_uring public #84

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

sahlberg
Copy link

Make this symbol public. I need it for an app that calls directly to /lib64/libublksrv.so

*
* @param r the ring pointer for io_uring
*/
extern int ublksrv_reap_events_uring(struct io_uring *r);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you name it as ublksrv_queue_reap_events(struct ublksrv_queue *)?
Then we can avoid to add io_uring into interface, meantime ublksrv_reap_events_uring() can be kept as inline.

Thanks,

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done.

@sahlberg sahlberg force-pushed the ublksrv_reap_events_uring branch from fc9faa1 to e1b04e1 Compare January 24, 2025 22:22
lib/ublksrv.c Outdated
@@ -858,6 +858,11 @@ static int ublksrv_reap_events_uring(struct io_uring *r)
return count;
}

int ublksrv_queue_reap_events(struct io_uring *r)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant using "struct ublksrv_queue *" as the API's argument, instead of "struct io_uring *" because all queue APIs takes "struct ublksrv_queue *" as its parameter.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, done

Signed-off-by: Ronnie Sahlberg <[email protected]>
@sahlberg sahlberg force-pushed the ublksrv_reap_events_uring branch from e1b04e1 to 0308952 Compare January 25, 2025 23:18
@ming1 ming1 merged commit 41e8407 into ublk-org:master Jan 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants