On Tue, Oct 19, 2021 at 10:24:20PM +0100, Pavel Begunkov wrote: > If a bio was just allocated its flags should be zero and there is no > need to clear them. Add __bio_set_dev(), which is faster and doesn't > care about clering flags. This is entirely the wrong way around. Please add a new bio_reset_dev for the no more than about two hand full callers that actually had a device set and just optimize bio_set_dev.