Thread (42 messages) 42 messages, 8 authors, 2022-05-20

Re: [PATCHv2 3/3] block: relax direct io memory alignment

From: Keith Busch <kbusch@kernel.org>
Date: 2022-05-19 17:43:16
Also in: linux-fsdevel

On Thu, May 19, 2022 at 10:27:04AM -0700, Eric Biggers wrote:
On Thu, May 19, 2022 at 11:01:05AM -0600, Keith Busch wrote:
quoted
On Wed, May 18, 2022 at 10:56:04PM -0600, Keith Busch wrote:
quoted
On Wed, May 18, 2022 at 08:27:31PM -0700, Eric Biggers wrote:
quoted
Note, there's also lots of code that assumes that bio_vec::bv_len is a multiple
of 512.  
Could you point me to some examples?
Just to answer my own question, blk-crypto and blk-merge appear to have these
512 byte bv_len assumptions.
blk_bio_segment_split() and bio_advance_iter() are two more examples.
I agree about blk_bio_segment_split(), but bio_advance_iter() looks fine. That
just assumes the entire length is a multiple of 512, not any particular bvec.

Anyway, I accept your point that some existing code has this assumption, and
will address these before the next revision.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help