public inbox for [email protected]
 help / color / mirror / Atom feed
* SQPOLL / uring_cmd_iopoll
@ 2023-04-21 22:09 Bernd Schubert
  2023-04-22  2:13 ` Jens Axboe
  2023-04-22 12:55 ` Ming Lei
  0 siblings, 2 replies; 7+ messages in thread
From: Bernd Schubert @ 2023-04-21 22:09 UTC (permalink / raw)
  To: io-uring; +Cc: Ming Lei, Jens Axboe, Pavel Begunkov

Hello,

I was wondering if I could set up SQPOLL for fuse/IORING_OP_URING_CMD 
and what would be the latency win. Now I get a bit confused what the 
f_op->uring_cmd_iopoll() function is supposed to do.

Is it just there to check if SQEs are can be completed as CQE? In rw.c 
io_do_iopoll() it looks like this. I don't follow all code paths in 
__io_sq_thread yet, but it looks a like it already checks if the ring 
has new entries

to_submit = io_sqring_entries(ctx);
...
ret = io_submit_sqes(ctx, to_submit);

   --> it will eventually call into ->uring_cmd() ?

And then io_do_iopoll ->  file->f_op->uring_cmd_iopoll is supposed to 
check for available cq entries and will submit these? I.e. I just return 
1 if when the request is ready? And also ensure that 
req->iopoll_completed is set?


I'm also not sure what I should do with struct io_comp_batch * - I don't 
have struct request *req_list anywhere in my fuse-uring changes, seems 
to be blk-mq specific? So I should just ignore that parameter?


Btw, this might be useful for ublk as well?

Thanks,
Bernd



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-24 12:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-21 22:09 SQPOLL / uring_cmd_iopoll Bernd Schubert
2023-04-22  2:13 ` Jens Axboe
2023-04-22 13:40   ` Bernd Schubert
2023-04-24 12:55     ` Bernd Schubert
2023-04-22 12:55 ` Ming Lei
2023-04-22 14:08   ` Jens Axboe
2023-04-23  1:06     ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox