Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-12-02 Thread Satya Tangirala
On Wed, Nov 25, 2020 at 02:12:35PM -0800, Eric Biggers wrote: > On Wed, Nov 18, 2020 at 12:38:15AM +, Satya Tangirala wrote: > > > > +/** > > > > + * update_aligned_sectors_and_segs() - Ensures that *@aligned_sectors > > > > is aligned > > > > + *to

Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-11-25 Thread Eric Biggers
On Tue, Nov 17, 2020 at 02:07:01PM +, Satya Tangirala wrote: > @@ -275,11 +331,24 @@ static struct bio *blk_bio_segment_split(struct > request_queue *q, > bvprvp = > } > > + /* > + * The input bio's number of sectors is assumed to be aligned to > + *

Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-11-25 Thread Eric Biggers
On Wed, Nov 18, 2020 at 12:38:15AM +, Satya Tangirala wrote: > > > +/** > > > + * update_aligned_sectors_and_segs() - Ensures that *@aligned_sectors is > > > aligned > > > + * to @bio_sectors_alignment, and > > > that > > > + *

Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-11-17 Thread Satya Tangirala
On Tue, Nov 17, 2020 at 03:31:23PM -0800, Eric Biggers wrote: > On Tue, Nov 17, 2020 at 02:07:01PM +, Satya Tangirala wrote: > > Introduce blk_crypto_bio_sectors_alignment() that returns the required > > alignment for the number of sectors in a bio. Any bio split must ensure > > that the

Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-11-17 Thread Eric Biggers
On Tue, Nov 17, 2020 at 02:07:01PM +, Satya Tangirala wrote: > Introduce blk_crypto_bio_sectors_alignment() that returns the required > alignment for the number of sectors in a bio. Any bio split must ensure > that the number of sectors in the resulting bios is aligned to that > returned

[PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-11-17 Thread Satya Tangirala
Introduce blk_crypto_bio_sectors_alignment() that returns the required alignment for the number of sectors in a bio. Any bio split must ensure that the number of sectors in the resulting bios is aligned to that returned value. This patch also updates __blk_queue_split(), __blk_queue_bounce() and