Re: [PATCH] sysfs: use atomic_inc_unless_negative in sysfs_get_active

2013-03-18 Thread Tejun Heo
On Mon, Mar 18, 2013 at 05:14:18PM -0700, Greg KH wrote: > On Fri, Mar 08, 2013 at 04:07:27PM +0100, Maarten Lankhorst wrote: > > It seems that sysfs has an interesting way of doing the same thing. > > This removes the cpu_relax unfortunately, but if it's really needed, > > it would be better to ad

Re: [PATCH] sysfs: use atomic_inc_unless_negative in sysfs_get_active

2013-03-18 Thread Greg KH
On Fri, Mar 08, 2013 at 04:07:27PM +0100, Maarten Lankhorst wrote: > It seems that sysfs has an interesting way of doing the same thing. > This removes the cpu_relax unfortunately, but if it's really needed, > it would be better to add this to include/linux/atomic.h to benefit > all atomic ops user