Re: [RFC PATCH 1/7] block: move submit_bio_checks() into submit_bio_noacct
From: Christoph Hellwig <hch@infradead.org>
Date: 2022-01-17 08:20:19
From: Christoph Hellwig <hch@infradead.org>
Date: 2022-01-17 08:20:19
On Tue, Jan 11, 2022 at 07:55:26PM +0800, Ming Lei wrote:
It is more clean & readable to check bio when starting to submit it, instead of just before calling ->submit_bio() or blk_mq_submit_bio(). Also it provides us chance to optimize bio submission without checking bio.
This looks ok, but I'd just remove submit_bio_checks entirely while we're at it.