block: align the bio after building it
authorKeith Busch <kbusch@kernel.org>
Wed, 27 Aug 2025 14:12:53 +0000 (07:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Sep 2025 16:27:01 +0000 (10:27 -0600)
commit20a0e6276edba4318c13486df02c31e5f3c09431
tree0f1a7d1c58fe2146211f838f468302b7a96dd578
parent743bf2e0c49c835cb7c4e4ac7d5a2610587047be
block: align the bio after building it

Instead of ensuring each vector is block size aligned while constructing
the bio, just ensure the entire size is aligned after it's built. This
makes getting bio pages more flexible to accepting device valid io
vectors that would otherwise get rejected by alignment checks.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c