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

Sagi Grimberg sagi at grimberg.me
Mon Jan 15 23:59:02 PST 2024



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.



More information about the Linux-nvme mailing list