[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120514200049.GA24362@kroah.com>
Date: Mon, 14 May 2012 13:00:49 -0700
From: Greg KH <gregkh@...uxfoundation.org>
To: H Hartley Sweeten <hartleys@...ionengravers.com>
Cc: Linux Kernel <linux-kernel@...r.kernel.org>,
devel@...verdev.osuosl.org, abbotti@....co.uk,
fmhess@...rs.sourceforge.net
Subject: Re: [PATCH] staging: comedi: register sysfs device attributes with
driver core
On Thu, May 10, 2012 at 06:05:28PM -0700, H Hartley Sweeten wrote:
> Currently the sysfs device attributes are created by the comedi
> core after each comedi device is created. This can lead to a race
> condition where userspace gets an add event before the files are
> created.
>
> Register the device attributes with the comedi class so that the
> driver core handles creating them and we avoid the race.
Nice job, thanks for making this change.
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists