[PATCH 7/7] nvme: Send change uevent when AEN completes

Keith Busch keith.busch at intel.com
Fri Jul 14 08:16:25 PDT 2017


On Fri, Jul 14, 2017 at 02:53:09PM +0200, Christoph Hellwig wrote:
> 
> Someone has to clear the log page after and AER, and if both the
> kernel and the user tool do so we risk that the user tool clears
> the next AER due to a race condition.

Sorry, bare with me a moment. I may be missing something obvious, as I'm
not seeing a problem. Reading the event's associated log only rearms
the AER for that event type. Even if the user tool reads the same log
as the driver, that doesn't stop the driver from seeing the next AER
completion and handle it the same as if user space wasn't there.



More information about the Linux-nvme mailing list