Thread (15 messages) 15 messages, 6 authors, 2018-06-30

Re: [PATCH] block: Make __bio_clone_fast() copy bi_vcnt

From: Bart Van Assche <hidden>
Date: 2018-06-28 15:21:29

On 06/27/18 17:30, Ming Lei wrote:
One core idea of immutable bvec is to use bio->bi_iter and the original
bvec table to iterate over anywhere in the bio. That is why .bi_io_vec
needs to copy, but not see any reason why .bi_vcnt needs to do.

Do you have use cases on .bi_vcnt for cloned bio?
So far this is only a theoretical concern. There are many functions in 
the block layer that use .bi_vcnt, and it is a lot of work to figure out 
all the callers of all these functions.

Bart.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help