Skip to content

Commit bbc758e

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove REQ_NO_TIMEOUT flag
This was added for the 'magic' AEN requests in the NVMe driver that never return. We now handle them purely inside the driver and don't need this core hack any more. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent f4800d6 commit bbc758e

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

‎block/blk-mq.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,6 @@ static void blk_mq_check_expired(struct blk_mq_hw_ctx *hctx,
603603
blk_mq_complete_request(rq, -EIO);
604604
return;
605605
}
606-
if (rq->cmd_flags & REQ_NO_TIMEOUT)
607-
return;
608606

609607
if (time_after_eq(jiffies, rq->deadline)) {
610608
if (!blk_mark_rq_complete(rq))

‎block/blk-timeout.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ void blk_add_timer(struct request *req)
197197
struct request_queue *q = req->q;
198198
unsigned long expiry;
199199

200-
if (req->cmd_flags & REQ_NO_TIMEOUT)
201-
return;
202-
203200
/* blk-mq has its own handler, so we don't need ->rq_timed_out_fn */
204201
if (!q->mq_ops && !q->rq_timed_out_fn)
205202
return;

‎include/linux/blk_types.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ enum rq_flag_bits {
188188
__REQ_PM, /* runtime pm request */
189189
__REQ_HASHED, /* on IO scheduler merge hash */
190190
__REQ_MQ_INFLIGHT, /* track inflight for MQ */
191-
__REQ_NO_TIMEOUT, /* requests may never expire */
192191
__REQ_NR_BITS, /* stops here */
193192
};
194193

@@ -242,7 +241,6 @@ enum rq_flag_bits {
242241
#define REQ_PM (1ULL << __REQ_PM)
243242
#define REQ_HASHED (1ULL << __REQ_HASHED)
244243
#define REQ_MQ_INFLIGHT (1ULL << __REQ_MQ_INFLIGHT)
245-
#define REQ_NO_TIMEOUT (1ULL << __REQ_NO_TIMEOUT)
246244

247245
typedef unsigned int blk_qc_t;
248246
#define BLK_QC_T_NONE -1U

0 commit comments

Comments
 (0)