Skip to content

Commit bb351ab

Browse files
Weiping Zhangaxboe
authored andcommitted
block: add documentation for io_timeout
Add documentation for /sys/block/<disk>/queue/io_timeout. Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Weiping Zhang <zhangweiping@didiglobal.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 59f75fd commit bb351ab

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎Documentation/ABI/testing/sysfs-block‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,3 +279,12 @@ Description:
279279
size in 512B sectors of the zones of the device, with
280280
the eventual exception of the last zone of the device
281281
which may be smaller.
282+
283+
What: /sys/block/<disk>/queue/io_timeout
284+
Date: November 2018
285+
Contact: Weiping Zhang <zhangweiping@didiglobal.com>
286+
Description:
287+
io_timeout is the request timeout in milliseconds. If a request
288+
does not complete in this time then the block driver timeout
289+
handler is invoked. That timeout handler can decide to retry
290+
the request, to fail it or to start a device recovery strategy.

‎Documentation/block/queue-sysfs.txt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ If set to a value larger than 0, the kernel will put the process issuing
6767
IO to sleep for this amount of microseconds before entering classic
6868
polling.
6969

70+
io_timeout (RW)
71+
---------------
72+
io_timeout is the request timeout in milliseconds. If a request does not
73+
complete in this time then the block driver timeout handler is invoked.
74+
That timeout handler can decide to retry the request, to fail it or to start
75+
a device recovery strategy.
76+
7077
iostats (RW)
7178
-------------
7279
This file is used to control (on/off) the iostats accounting of the

0 commit comments

Comments
 (0)