[PATCH 2/2] [RFC] nvme: enable asynchronous events notification by default

Gabriel Krisman Bertazi krisman at linux.vnet.ibm.com
Tue Jun 28 21:17:35 PDT 2016


Keith Busch <keith.busch at intel.com> writes:

> On Fri, Jun 24, 2016 at 01:17:26AM -0700, Christoph Hellwig wrote:
>> Yes, I'm not too excited about handling the AERs in kernel space,
>> having a userspace daemon to listen for them would generally be more
>> useful.
>
> How do daemons typically want to be notified of an event like this? I'm
> thinking sysfs_notify or maybe a KOBJ_CHANGE uevent. I don't know, this
> is unfamiliar territory to me.

For IPR (IBM Hardware RAID SCSI controller) we use KOBJ_CHANGE events
for a very similar situation, in which the driver signals a userspace
daemon, which goes over a sysfs attribute to collect adapter data dumps.

I'm also working on another async notifications mechanism for IPR,
similar to what is supported by nvme, in which I plan to use the same
uevent interface for userspace notifications.

-- 
Gabriel Krisman Bertazi




More information about the Linux-nvme mailing list