summaryrefslogtreecommitdiffstats
path: root/block/blk-timeout.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-11-09 19:37:44 +0100
committerJens Axboe <axboe@kernel.dk>2018-11-09 19:44:10 +0100
commit9d037ad707ed6069fbea4e38e6ee37e027b13f1d (patch)
tree4ba0291f125e1d9de945ac521c72975b9c33578e /block/blk-timeout.c
parentmtip32xxx: use for_each_sg (diff)
downloadlinux-9d037ad707ed6069fbea4e38e6ee37e027b13f1d.tar.xz
linux-9d037ad707ed6069fbea4e38e6ee37e027b13f1d.zip
block: remove req->timeout_list
Unused now that the legacy request path is gone. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-timeout.c')
-rw-r--r--block/blk-timeout.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/block/blk-timeout.c b/block/blk-timeout.c
index 6428d458072a..006cff4390c0 100644
--- a/block/blk-timeout.c
+++ b/block/blk-timeout.c
@@ -68,16 +68,6 @@ ssize_t part_timeout_store(struct device *dev, struct device_attribute *attr,
#endif /* CONFIG_FAIL_IO_TIMEOUT */
-/*
- * blk_delete_timer - Delete/cancel timer for a given function.
- * @req: request that we are canceling timer for
- *
- */
-void blk_delete_timer(struct request *req)
-{
- list_del_init(&req->timeout_list);
-}
-
/**
* blk_abort_request -- Request request recovery for the specified command
* @req: pointer to the request of interest
@@ -123,8 +113,6 @@ void blk_add_timer(struct request *req)
struct request_queue *q = req->q;
unsigned long expiry;
- BUG_ON(!list_empty(&req->timeout_list));
-
/*
* Some LLDs, like scsi, peek at the timeout to prevent a
* command from being retried forever.