diff options
author | Christoph Hellwig <hch@lst.de> | 2014-09-13 19:40:13 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-22 14:00:07 -0400 |
commit | 0152fb6b57c4fae769ee75ea2ae670f4ff39fba9 (patch) | |
tree | f59f4c6703c1914bc65607f21ae8c868b995f245 /include/linux/blk-mq.h | |
parent | 46f92d42ee37e10970e33891b7b61a342bd97aeb (diff) |
blk-mq: pass a reserved argument to the timeout handler
Allow blk-mq to pass an argument to the timeout handler to indicate
if we're timing out a reserved or regular command. For many drivers
those need to be handled different.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 0eb0f642be4b..325349559fb0 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
@@ -79,6 +79,7 @@ struct blk_mq_tag_set { | |||
79 | 79 | ||
80 | typedef int (queue_rq_fn)(struct blk_mq_hw_ctx *, struct request *, bool); | 80 | typedef int (queue_rq_fn)(struct blk_mq_hw_ctx *, struct request *, bool); |
81 | typedef struct blk_mq_hw_ctx *(map_queue_fn)(struct request_queue *, const int); | 81 | typedef struct blk_mq_hw_ctx *(map_queue_fn)(struct request_queue *, const int); |
82 | typedef enum blk_eh_timer_return (timeout_fn)(struct request *, bool); | ||
82 | typedef int (init_hctx_fn)(struct blk_mq_hw_ctx *, void *, unsigned int); | 83 | typedef int (init_hctx_fn)(struct blk_mq_hw_ctx *, void *, unsigned int); |
83 | typedef void (exit_hctx_fn)(struct blk_mq_hw_ctx *, unsigned int); | 84 | typedef void (exit_hctx_fn)(struct blk_mq_hw_ctx *, unsigned int); |
84 | typedef int (init_request_fn)(void *, struct request *, unsigned int, | 85 | typedef int (init_request_fn)(void *, struct request *, unsigned int, |
@@ -103,7 +104,7 @@ struct blk_mq_ops { | |||
103 | /* | 104 | /* |
104 | * Called on request timeout | 105 | * Called on request timeout |
105 | */ | 106 | */ |
106 | rq_timed_out_fn *timeout; | 107 | timeout_fn *timeout; |
107 | 108 | ||
108 | softirq_done_fn *complete; | 109 | softirq_done_fn *complete; |
109 | 110 | ||