public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* fs_struct refcounting: spinlock vs atomic
@ 2018-02-14 21:13 Enrico Weigelt
  2018-02-15  9:14 ` Richard Weinberger
  0 siblings, 1 reply; 5+ messages in thread
From: Enrico Weigelt @ 2018-02-14 21:13 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org

Hi folks,


in fork.c, a spinlock is held for fs_struct refcounting, while other
places - eg. switch_task_namespaces uses atomic_dec_and_test() on
the nsproxy.

What's the exact difference here ? Could the atomic counting also used
for fs_struct ?


--mtx

-- 
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-15 18:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-14 21:13 fs_struct refcounting: spinlock vs atomic Enrico Weigelt
2018-02-15  9:14 ` Richard Weinberger
2018-02-15 13:46   ` Enrico Weigelt
2018-02-15 18:39     ` Al Viro
2018-02-15 18:52       ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox