blk-mq.c (2dd6532e9591f201e7571b30915db807603ab924) blk-mq.c (6deacb3bfac2b720e707c566549a7041f17db9c8)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Block multiqueue core code
4 *
5 * Copyright (C) 2013-2014 Jens Axboe
6 * Copyright (C) 2013-2014 Christoph Hellwig
7 */
8#include <linux/kernel.h>

--- 2794 unchanged lines hidden (view full) ---

2803 * * There is an IO scheduler active at this queue
2804 *
2805 * It will not queue the request if there is an error with the bio, or at the
2806 * request creation.
2807 */
2808void blk_mq_submit_bio(struct bio *bio)
2809{
2810 struct request_queue *q = bdev_get_queue(bio->bi_bdev);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Block multiqueue core code
4 *
5 * Copyright (C) 2013-2014 Jens Axboe
6 * Copyright (C) 2013-2014 Christoph Hellwig
7 */
8#include <linux/kernel.h>

--- 2794 unchanged lines hidden (view full) ---

2803 * * There is an IO scheduler active at this queue
2804 *
2805 * It will not queue the request if there is an error with the bio, or at the
2806 * request creation.
2807 */
2808void blk_mq_submit_bio(struct bio *bio)
2809{
2810 struct request_queue *q = bdev_get_queue(bio->bi_bdev);
2811 struct blk_plug *plug = blk_mq_plug(q, bio);
2811 struct blk_plug *plug = blk_mq_plug(bio);
2812 const int is_sync = op_is_sync(bio->bi_opf);
2813 struct request *rq;
2814 unsigned int nr_segs = 1;
2815 blk_status_t ret;
2816
2817 blk_queue_bounce(q, &bio);
2818 if (blk_may_split(q, bio))
2819 __blk_queue_split(q, &bio, &nr_segs);

--- 2004 unchanged lines hidden ---
2812 const int is_sync = op_is_sync(bio->bi_opf);
2813 struct request *rq;
2814 unsigned int nr_segs = 1;
2815 blk_status_t ret;
2816
2817 blk_queue_bounce(q, &bio);
2818 if (blk_may_split(q, bio))
2819 __blk_queue_split(q, &bio, &nr_segs);

--- 2004 unchanged lines hidden ---