blk-mq.c (2c55d703391acf7e9101da596d0c15ee03b318a3) | blk-mq.c (613b14884b8595e20b9fac4126bf627313827fbe) |
---|---|
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> --- 2937 unchanged lines hidden (view full) --- 2946 struct request_queue *q = bdev_get_queue(bio->bi_bdev); 2947 struct blk_plug *plug = blk_mq_plug(bio); 2948 const int is_sync = op_is_sync(bio->bi_opf); 2949 struct request *rq; 2950 unsigned int nr_segs = 1; 2951 blk_status_t ret; 2952 2953 bio = blk_queue_bounce(bio, q); | 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> --- 2937 unchanged lines hidden (view full) --- 2946 struct request_queue *q = bdev_get_queue(bio->bi_bdev); 2947 struct blk_plug *plug = blk_mq_plug(bio); 2948 const int is_sync = op_is_sync(bio->bi_opf); 2949 struct request *rq; 2950 unsigned int nr_segs = 1; 2951 blk_status_t ret; 2952 2953 bio = blk_queue_bounce(bio, q); |
2954 if (bio_may_exceed_limits(bio, &q->limits)) | 2954 if (bio_may_exceed_limits(bio, &q->limits)) { |
2955 bio = __bio_split_to_limits(bio, &q->limits, &nr_segs); | 2955 bio = __bio_split_to_limits(bio, &q->limits, &nr_segs); |
2956 if (!bio) 2957 return; 2958 } |
|
2956 2957 if (!bio_integrity_prep(bio)) 2958 return; 2959 2960 bio_set_ioprio(bio); 2961 2962 rq = blk_mq_get_cached_request(q, plug, &bio, nr_segs); 2963 if (!rq) { --- 2003 unchanged lines hidden --- | 2959 2960 if (!bio_integrity_prep(bio)) 2961 return; 2962 2963 bio_set_ioprio(bio); 2964 2965 rq = blk_mq_get_cached_request(q, plug, &bio, nr_segs); 2966 if (!rq) { --- 2003 unchanged lines hidden --- |