[PATCH V4 5/9] nvme: add sysfs attribute to change IO timeout per controller

Maurizio Lombardi mlombard at arkamax.eu
Wed May 13 06:00:31 PDT 2026


On Fri May 8, 2026 at 7:08 PM CEST, Daniel Wagner wrote:
> On Fri, May 08, 2026 at 03:33:31PM +0200, Maurizio Lombardi wrote:
>> Currently, there is no method to adjust the timeout values on a
>> per controller basis with nvme I/O queues.
>> Add an io_timeout attribute to nvme so that different nvme controllers
>> which may have different timeout requirements can have custom
>> I/O timeouts set.
>> 
>> Signed-off-by: Maurizio Lombardi <mlombard at redhat.com>
>
> I was wondering if namespaces would ever want different timeouts but
> given that at this point it was always the default one and this change
> scopes to controllers is properly enough.

In theory, that might be possible, since each namespace could be backed
by very different storage backends, ranging from a ramdisk to a file over
an NFS export. However, in such cases, the user could simply ignore
io_timeout and set his preferred timeout value on the queue associated
with the namespace.

Maurizio



More information about the Linux-nvme mailing list