axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.86k stars 402 forks source link

Trace between blk layer and io_uring #720

Closed korant96 closed 3 weeks ago

korant96 commented 1 year ago

In I/O layer, we can trace from bio submitting to req completing with LBA address. In io_uring, we can trace req with userdata? But it seems an req can not be tarced between io_uring and blk layer. Is there any connection across the two layer?

axboe commented 3 weeks ago

Not currently possible. Could be done, but would require you to additionally map file offset to disk location. That's either easy (eg you're using a raw bdev for IO), or a bit harder and requires you to map extents in the file.