[pbs-devel] [PATCH proxmox-backup] api: chunk reader: make reading from filesystem fully async
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Nov 27 10:01:13 CET 2025
On November 26, 2025 7:10 pm, Thomas Lamprecht wrote:
> Am 26.11.25 um 17:28 schrieb Christian Ebner:
>> Blocking the thread is problematic here and must be avoided, so
>> read the chunk data via tokio::fs::read() instead of std::fs::read()
>> and make the full loading from filesystem branch async.
>
> Nothing against that, but "async" here comes a bit with a bigger asterisks,
> as:
>
> "This operation is implemented by running the equivalent blocking operation
> on a separate thread pool using spawn_blocking."
> -- https://docs.rs/tokio/latest/tokio/fs/fn.read.html
>
> So technically async, but not really does any async IO (tokio io uring when? ;)).
https://github.com/tokio-rs/tokio/pull/7713
:-P
More information about the pbs-devel
mailing list