nvme/pcie hot plug results in /dev name change
Sagi Grimberg
sagi at grimberg.me
Mon Feb 13 06:01:03 PST 2023
>>>> The native nvme multipath looks like it could be leveraged to improving that
>>>> user experience if we wanted to make that layer an option for non-multipath
>>>> devices.
>>>
>>> Can you share the basic idea? Will nvme mulitpath hold the io error and
>>> not propagate to upper layer until new device is probed? What if the
>>> new device is probed late, and IO has been timed out and err is returned
>>> to upper layer?
>>
>> Attached is what I did, but I'm really not sure it is the right final
>> approach.
>
> Also not sure if this is going to work out, but it looks like a good start to
> me.
>
> Instead of user pinning the virtual device so that it never goes away though, I
> considered a user tunable "device missing delay" parameter to debounce link
> events. New IOs would be deferred to the requeue_list while the timer is
> active, and then EIO'ed if the timer expires without a successful LIVE
> controller attachment. The use cases I'm considering are short bounces from
> transient link resets, so I'd expect timers to be from a few seconds to maybe a
> minute.
Isn't this equivalent to dm-mpath queue_if_no_path or no_path_timeout ?
We can keep the mpath device around, but if not, what is the desired
behavior from the upper layers?
More information about the Linux-nvme
mailing list