blk-mq: remove BLK_MQ_F_DEFER_ISSUE
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Mar 2017 19:01:49 +0000 (15:01 -0400)
committerJens Axboe <axboe@fb.com>
Thu, 23 Mar 2017 02:16:56 +0000 (20:16 -0600)
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>
block/blk-mq.c
include/linux/blk-mq.h

index 5ff66f203cd09d02744a9133cce4718079ce9ea0..998c041358f23169d386e69b92c0460d03d2cecc 100644 (file)
@@ -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);
index b296a900611790e25639293fd51b0fa7a9beab41..5b3e201c8d4f4ae0b788dd986607690cd170ccb0 100644 (file)
@@ -152,7 +152,6 @@ enum {
        BLK_MQ_F_SHOULD_MERGE   = 1 << 0,
        BLK_MQ_F_TAG_SHARED     = 1 << 1,
        BLK_MQ_F_SG_MERGE       = 1 << 2,
-       BLK_MQ_F_DEFER_ISSUE    = 1 << 4,
        BLK_MQ_F_BLOCKING       = 1 << 5,
        BLK_MQ_F_NO_SCHED       = 1 << 6,
        BLK_MQ_F_ALLOC_POLICY_START_BIT = 8,