Robert explains the various locking primitives in the Linux kernel, why you need them and how kernel developers can use them to write safe code. by Robert Love Proper locking can be tough--real tough. Improper locking can result in random crashes and other oddities. Poorly designed locking can result in code that is hard to read, performs poorly and makes your fellow kernel developers cringe. In