[PATCH V2 3/3] nvme: introduce pr_work to handle resv event

Guixin Liu kanie at linux.alibaba.com
Tue Jan 16 01:57:30 PST 2024


在 2024/1/16 15:59, Sagi Grimberg 写道:
>
>
> On 1/16/24 04:02, Guixin Liu wrote:
>>
>> 在 2024/1/15 16:59, Sagi Grimberg 写道:
>>>
>>>> When a reservation event is reported, the corresponding log page is
>>>> already on the target side, and the host side needs to send a get
>>>> log command to clear these log pages.
>>>
>>> AENs are already sent to userspace, I don't see why the kernel
>>> should read the log page unless it has something meaningful to
>>> do with it.
>>>
>> Is it tolerable if we dont clear the log page?
>
> Its up to the host. If the host has nothing to do with it
> then it doesn't have to do anything with it. I'm assuming
> that the user exercising reservations would listen to udev.
>
> Perhaps libnvme would be the place we want to allow users
> to consume an api to deal with reservation events.

Agree, the userspace may use the reservation log page's information,

I will do a research on libnvme to see if we can add a consuming api after

this is done.




More information about the Linux-nvme mailing list