Replies: 1 comment
-
Yeah, in theory, this way may work, and mmap shouldn't be used, since you want to zero copy, and the kernel IO can run IO directly over the request pages from But ublk is one generic framework, and all specific IO business needto move out of ublk_drv, so we do not want to add such specific handling for loop inside |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm curious why the loopback driver doesn't just mmap the whole backend in and use UBLK_IO_NEED_GET_DATA. It can update the io_desc's buffer address to the right offset in the mmap'd location, and then rely on the kernel to do the I/O.
FWIW: Isn't this effectively zero copy?
Beta Was this translation helpful? Give feedback.
All reactions