[PATCHv3 5/5] nvme: Send uevent for some asynchronous events

Keith Busch keith.busch at intel.com
Thu Nov 9 08:18:46 PST 2017


On Thu, Nov 09, 2017 at 10:27:03AM +0100, Christoph Hellwig wrote:
> On Tue, Nov 07, 2017 at 03:13:14PM -0700, Keith Busch wrote:
> > +static void nvme_aen_uevent(struct nvme_ctrl *ctrl)
> > +{
> > +	char *envp[2] = {NULL, NULL};
> > +	u32 aen = ctrl->aen;
> > +
> > +	ctrl->aen = 0;
> 
> Seems like we should use cmpxchg on aen.

> > +		ctrl->aen = result;
> 
> Can we call the field aen_result?
> 
> Given that the rest of the series looks good I'd be tempted to just
> fix that up and apply it.  Are you ok with that?

Thanks, the suggestions sound good to me. If you want to edit the commit
when applying, I would much appreciate.



More information about the Linux-nvme mailing list