mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
atomic_inc_not_zero(v) return 0 if *v = 0. use spin_lock instead of write_lock for update lock. Signed-off-by: Lai Jiangshan <[email protected]> Cc: "Paul E. McKenney" <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>