On Mon, 11 Nov 2024 11:21:44 +0000, John Garry wrote: > bio_split() error handling could be improved as follows: > - Instead of returning NULL for an error - which is vague - return a > PTR_ERR, which may hint what went wrong. > - Remove BUG_ON() calls - which are generally not preferred - and instead > WARN and pass an error code back to the caller. Many callers of > bio_split() don't check the return code. As such, for an error we would > be getting a crash still from an invalid pointer dereference. > > [...] Applied, thanks! [1/6] block: Rework bio_split() return value commit: e546fe1da9bd47a6fddce6b37c17b1aa1811f7d3 [2/6] block: Error an attempt to split an atomic write in bio_split() commit: 27b26f09a7e6ae3ecae460299349b31fe0b5452f [3/6] block: Handle bio_split() errors in bio_submit_split() commit: 6eb09685885a4445da31097aa6418ee1875f9cec [4/6] md/raid0: Handle bio_split() errors commit: 74538fdac3e85aae55eb4ed786478ed2384cb85d [5/6] md/raid1: Handle bio_split() errors commit: b1a7ad8b5c4fa28325ee7b369a2d545d3e16ccde [6/6] md/raid10: Handle bio_split() errors commit: 4cf58d9529097328b669e3c8693ed21e3a041903 Best regards, -- Jens Axboe