diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-01-10 00:23:42 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-10 21:47:47 +0300 |
commit | 0a72e7f44964b9ada3e5c15820372e9cb119bf80 (patch) | |
tree | 08885e630c816c2d22951f29e1783c685400fcb1 /include/linux/blkdev.h | |
parent | 76a86f9d027b342b8759a4b2f9f7fe046e284220 (diff) | |
download | linux-0a72e7f44964b9ada3e5c15820372e9cb119bf80.tar.xz |
block: add accessors for setting/querying request deadline
We reduce the resolution of request expiry, but since we're already
using jiffies for this where resolution depends on the kernel
configuration and since the timeout resolution is coarse anyway,
that should be fine.
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index ba31674d8581..aa6698cf483c 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -257,7 +257,9 @@ struct request { struct u64_stats_sync aborted_gstate_sync; u64 aborted_gstate; - unsigned long deadline; + /* access through blk_rq_set_deadline, blk_rq_deadline */ + unsigned long __deadline; + struct list_head timeout_list; /* |