linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Invalid locking pattern in Documentation/kernel-hacking/locking.rst?
@ 2022-12-09 12:23 Sverdlin, Alexander
  2022-12-09 18:47 ` Manfred Spraul
  0 siblings, 1 reply; 3+ messages in thread
From: Sverdlin, Alexander @ 2022-12-09 12:23 UTC (permalink / raw)
  To: corbet@lwn.net, manfred@colorfullife.com,
	linux-doc@vger.kernel.org
  Cc: linux-kernel@vger.kernel.org

Dear documentation maintainers,

the latest version of locking.rst contains the following (since 2005):

"Manfred Spraul points out that you can still do this, even if the data
is very occasionally accessed in user context or softirqs/tasklets. The
irq handler doesn't use a lock, and all other accesses are done as so::

        spin_lock(&lock);
        disable_irq(irq);
"

Isn't it "sleeping in atomic" actually because of the sleeping
disable_irq()?

-- 
Alexander Sverdlin
Siemens AG
www.siemens.com

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

end of thread, other threads:[~2022-12-12 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-09 12:23 Invalid locking pattern in Documentation/kernel-hacking/locking.rst? Sverdlin, Alexander
2022-12-09 18:47 ` Manfred Spraul
2022-12-12 14:43   ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).