[PATCHv2 5/5] nvme: Send uevent for unhandled AEN completions

Keith Busch keith.busch at intel.com
Fri Oct 20 15:29:32 PDT 2017


On Fri, Oct 20, 2017 at 04:19:24PM -0600, Keith Busch wrote:
> +static void nvme_aen_uevent(struct nvme_ctrl *ctrl)
> +{
> +	char *envp[2] = {NULL, NULL};
> +	u32 aen = ctrl->aen;
> +
> +	ctrl->aen = 0;
> +	if (!aen)
> +		return;
> +
> +	if (!envp[0])
> +		return;
> +	kobject_uevent_env(&ctrl->device->kobj, KOBJ_CHANGE, envp);
> +	kfree(envp[0]);
> +}

Uh, the string format dissappeared on me. Resending...



More information about the Linux-nvme mailing list