[PATCH RFC 4/5] block: move bio validation into __bio_split_to_limits
Keith Busch
kbusch at kernel.org
Wed May 20 08:19:03 PDT 2026
On Wed, May 20, 2026 at 09:25:48AM +0200, Christoph Hellwig wrote:
> Moving the checking from submit_bio_noacct into __bio_split_to_limits
> means that we lose it for bio-based drivers except for the few that
> manuall call bio_split_to_limits. So we'll still need a helper for
> them, which could be called just before calling into ->submit_bio.
Oh good point. It looks like many of them don't even want their bio's to
split, so probably would need to factor out a limits check from the
split so that both can call from an entered queue context. Thanks for
the feedback.
More information about the Linux-nvme
mailing list