|
|
Subscribe / Log in / New account

Vetter: Locking Engineering Principles

Daniel Vetter offers some advice for developers of locking schemes in the kernel.

Validating locking by hand against all the other locking designs and nesting rules the kernel has overall is nigh impossible, extremely slow, something only few people can do with any chance of success and hence in almost all cases a complete waste of time. We need tools to automate this, and in the Linux kernel this is lockdep.

Therefore if lockdep doesn’t understand your locking design your design is at fault, not lockdep. Adjust accordingly.



to post comments

Informative!

Posted Jul 28, 2022 17:20 UTC (Thu) by JesseW (subscriber, #41816) [Link]

I'm not anything like a kernel dev, but I found this informative from a general learning-more-about-locking perspective. Appreciate the pointer to it from LWN!


Copyright © 2022, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds