Re: svn commit: r334712 - head/sys/compat/linuxkpi/common/include/asm

2018-06-06 Thread Hans Petter Selasky
On 06/06/18 17:06, Mateusz Guzik wrote: On Wed, Jun 6, 2018 at 3:59 PM, Hans Petter Selasky wrote: cmpset loops are crap since they require an explicit re-read of the target value see fcmpset and refcount_acquire_if_not_zero for an example use See r334718. Thank you! --HPS

Re: svn commit: r334712 - head/sys/compat/linuxkpi/common/include/asm

2018-06-06 Thread Mateusz Guzik
On Wed, Jun 6, 2018 at 3:59 PM, Hans Petter Selasky wrote: > Author: hselasky > Date: Wed Jun 6 13:59:51 2018 > New Revision: 334712 > URL: https://svnweb.freebsd.org/changeset/base/334712 > > Log: > Implement the atomic_dec_if_positive() function in the LinuxKPI. > > Submitted by: Johannes

svn commit: r334712 - head/sys/compat/linuxkpi/common/include/asm

2018-06-06 Thread Hans Petter Selasky
Author: hselasky Date: Wed Jun 6 13:59:51 2018 New Revision: 334712 URL: https://svnweb.freebsd.org/changeset/base/334712 Log: Implement the atomic_dec_if_positive() function in the LinuxKPI. Submitted by: Johannes Lundberg MFC after:1 week Sponsored by: Mellanox Technologies Sp