Re: [PATCH v12 1/3] bio: control bio max size

From: Christoph Hellwig
Date: Mon Jun 07 2021 - 02:36:37 EST


On Fri, Jun 04, 2021 at 07:52:35AM -0700, Bart Van Assche wrote:
> Damien is right. bd_disk can be NULL. From

bd_disk is initialized in bdev_alloc, so it should never be NULL.
bi_bdev OTOH is only set afer bio_add_page in various places or not at
all in case of passthrough bios. Which is a bit of a mess and I have
plans to fix it.