summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-03-22 20:01:49 +0100
committerJens Axboe <axboe@fb.com>2017-03-23 03:16:56 +0100
commit7642747d674aff1f7cfe74ad9af7e9b12ab1d5ee (patch)
tree48036419f49ccc36d8f39ab97532444c80b0eec2 /block/blk-mq.c
parentblock: Fix oops scsi_disk_get() (diff)
downloadlinux-7642747d674aff1f7cfe74ad9af7e9b12ab1d5ee.tar.xz
linux-7642747d674aff1f7cfe74ad9af7e9b12ab1d5ee.zip
blk-mq: remove BLK_MQ_F_DEFER_ISSUE
This flag was never used since it was introduced. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 5ff66f203cd0..998c041358f2 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1531,13 +1531,7 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio)
}
plug = current->plug;
- /*
- * If the driver supports defer issued based on 'last', then
- * queue it up like normal since we can potentially save some
- * CPU this way.
- */
- if (((plug && !blk_queue_nomerges(q)) || is_sync) &&
- !(data.hctx->flags & BLK_MQ_F_DEFER_ISSUE)) {
+ if (((plug && !blk_queue_nomerges(q)) || is_sync)) {
struct request *old_rq = NULL;
blk_mq_bio_to_request(rq, bio);