block: don't show io_timeout if driver has no timeout handler
authorWeiping Zhang <zhangweiping@didiglobal.com>
Tue, 2 Apr 2019 13:14:30 +0000 (21:14 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Apr 2019 15:48:12 +0000 (09:48 -0600)
commit4d25339e32a1b6e1f490bb78b1e5b0fa9eb3e073
tree119ba95c6b529016f6136dcc2afb509f465c495f
parentf9f76879bc4521019697970bad3bc1dd0bec211f
block: don't show io_timeout if driver has no timeout handler

If the low level driver has no timeout handler, the
/sys/block/<disk>/queue/io_timeout will not be displayed.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Weiping Zhang <zhangweiping@didiglobal.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c