On Fri, Oct 21, 2022 at 11:34:04AM +0100, Pavel Begunkov wrote:
Add bio pcpu caching for normal / IRQ-driven I/O extending REQ_ALLOC_CACHE,
which was limited to iopoll.
So below comment (stating process context as MUST) can also be removed as
part of this series now?
495 * If REQ_ALLOC_CACHE is set, the final put of the bio MUST be done from process[...]
496 * context, not hard/soft IRQ.
497 *
498 * Returns: Pointer to new bio on success, NULL on failure.
499 */
500 struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
501 blk_opf_t opf, gfp_t gfp_mask,
502 struct bio_set *bs)
503 {
The next step will be turning it on for other users, hopefully by default.
The only restriction we currently have is that the allocations can't be
done from non-irq context and so needs auditing.
Isn't allocation (of bio) happening in non-irq context already?
Reviewed-by: Kanchan Joshi <joshi.k@xxxxxxxxxxx>