Message ID | 20240705125700.2174367-3-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] block: also check bio alignment for bio based drivers | expand |
diff --git a/drivers/block/brd.c b/drivers/block/brd.c index 2fd1ed1017481b..42545e4ddfac4b 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -256,10 +256,6 @@ static void brd_submit_bio(struct bio *bio) unsigned int len = bvec.bv_len; int err; - /* Don't support un-aligned buffer */ - WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) || - (len & (SECTOR_SIZE - 1))); - err = brd_do_bvec(brd, bvec.bv_page, len, bvec.bv_offset, bio->bi_opf, sector); if (err) {
The block layer now takes care of these. Signed-off-by: Christoph Hellwig <hch@lst.de> --- drivers/block/brd.c | 4 ---- 1 file changed, 4 deletions(-)