docs: locking: Discourage from calling disable_irq() in atomic
authorAlexander Sverdlin <alexander.sverdlin@siemens.com>
Mon, 12 Dec 2022 16:37:15 +0000 (17:37 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 11 Jan 2023 18:45:26 +0000 (19:45 +0100)
commit379af13b31fa8a36ad4abd59a5c511f25c5d4d42
treeef5e8b47f5ec5874b752d097b3ac766a977fae6d
parent17549b0f184d870f2cfa4e5cfa79f4c4905ed757
docs: locking: Discourage from calling disable_irq() in atomic

Correct the example in the documentation so that disable_irq() is not being
called in atomic context.

disable_irq() calls sleeping synchronize_irq(), it's not allowed to call
them in atomic context.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Manfred Spraul <manfred@colorfullife.com>
Cc: linux-doc@vger.kernel.org
Link: https://lore.kernel.org/lkml/87k02wbs2n.ffs@tglx/
Link: https://lore.kernel.org/r/20221212163715.830315-1-alexander.sverdlin@siemens.com
Documentation/kernel-hacking/locking.rst
Documentation/translations/it_IT/kernel-hacking/locking.rst