block: add accessors for setting/querying request deadline
authorJens Axboe <axboe@kernel.dk>
Tue, 9 Jan 2018 21:23:42 +0000 (14:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jan 2018 18:46:13 +0000 (11:46 -0700)
commit76951311f4bda4a43659d60099357a215ea3909b
tree08885e630c816c2d22951f29e1783c685400fcb1
parent9fadea60dd506832ee134e284ba8194393a91b8d
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>
block/blk-mq.c
block/blk-timeout.c
block/blk.h
include/linux/blkdev.h