]> git.baikalelectronics.ru Git - kernel.git/commit
lockref: Relax in cmpxchg loop
authorLuck, Tony <tony.luck@intel.com>
Tue, 3 Sep 2013 21:49:49 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 3 Sep 2013 22:36:42 +0000 (15:36 -0700)
commitea82cc601b2b5fd1a4ab0fc35ffe218a9317a7e5
tree05972418a7e71d3e8d5a9c8c8d5e1dc22f013c5b
parent7dda2a3931af7897b4c885e52256497e96a591c4
lockref: Relax in cmpxchg loop

While we are likley to succeed and break out of this loop, it isn't
guaranteed.  We should be power and thread friendly if we do have to
go around for a second (or third, or more) attempt.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/lockref.c