In snapshot mode, can we perform a check within the snap_trace_biofunction before executing bio_make_read_clone? If the current bio is not a copy on "first" write (verified through COW mapping can do that), can we directly passthrough this bio without the need for an additional read clone, thus reducing one read IO overhead?
Do you think this idea is reasonable, or was there a specific reason why it wasn't initially designed this way? Because each read operation seems to be quite resource-intensive in snapshot mode.
Hello, I'd like to ask a question.
In snapshot mode, can we perform a check within the
snap_trace_bio
function before executingbio_make_read_clone
? If the current bio is not a copy on "first" write (verified through COW mapping can do that), can we directly passthrough this bio without the need for an additional read clone, thus reducing one read IO overhead?Do you think this idea is reasonable, or was there a specific reason why it wasn't initially designed this way? Because each read operation seems to be quite resource-intensive in snapshot mode.
I also noticed there was a related discussion before https://github.com/datto/dattobd/issues/282 , but it seems there hasn't been any follow-up.
Thank you.